Changeset 1287
- Timestamp:
- 02/20/2015 07:55:57 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-forms-to-drafts/wordcamp-forms-to-drafts.php
r698 r1287 22 22 */ 23 23 public function __construct() { 24 25 24 26 add_action( 'grunion_pre_message_sent', array( $this, 'returning_organizer_application' ), 10, 3 ); 25 27 add_action( 'grunion_pre_message_sent', array( $this, 'new_organizer_application' ), 10, 3 ); 26 28 add_action( 'grunion_pre_message_sent', array( $this, 'call_for_sponsors' ), 10, 3 ); 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 27 145 } 28 146 … … 34 152 * 35 153 * @param int $submission_id 154 36 155 * @return string | false 37 156 */ … … 51 170 * 52 171 * @param string $username 172 53 173 * @return int 54 174 */ … … 62 182 * 63 183 * This plugin may need to insert a form into a different site, and the targeted post type may not be active 64 * on the current site. If we don't do this, PHP notices will be generated and will break the post/ get/redirect184 * on the current site. If we don't do this, PHP notices will be generated and will break the post/t 65 185 * flow because of the early headers. 66 186 * … … 185 305 * 186 306 * @todo 307 308 187 309 * - Add jetpack form field for Sponsor Level, where options are automatically pulled from wcb_sponsor_level 188 310 * taxonomy and the selected term is applied to the drafted post. Maybe need to send PR to add filter to … … 206 328 207 329 // Create the post 330 208 331 $draft_id = wp_insert_post( array( 209 332 'post_type' => 'wcb_sponsor', … … 223 346 } 224 347 } 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 225 467 } // end WordCamp_Forms_To_Drafts 226 468
Note: See TracChangeset
for help on using the changeset viewer.