Making WordPress.org

Changeset 1287

Timestamp:
02/20/2015 07:55:57 PM (9 years ago)
Author:
iandunn
Message:

WordCamp Forms to Drafts: Add handler for Call for Speakers form.

Props nvwd
See #567

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  
    2222     */
    2323    public function __construct() {
     24
     25
    2426        add_action( 'grunion_pre_message_sent', array( $this, 'returning_organizer_application' ), 10, 3 );
    2527        add_action( 'grunion_pre_message_sent', array( $this, 'new_organizer_application' ), 10, 3 );
    2628        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
    27145    }
    28146
     
    34152     *
    35153     * @param int $submission_id
     154
    36155     * @return string | false
    37156     */
     
    51170     *
    52171     * @param string $username
     172
    53173     * @return int
    54174     */
     
    62182     *
    63183     * 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/redirect
     184     * on the current site. If we don't do this, PHP notices will be generated and will break the post/t
    65185     * flow because of the early headers.
    66186     *
     
    185305     *
    186306     * @todo
     307
     308
    187309     * - Add jetpack form field for Sponsor Level, where options are automatically pulled from wcb_sponsor_level
    188310     *   taxonomy and the selected term is applied to the drafted post. Maybe need to send PR to add filter to
     
    206328
    207329        // Create the post
     330
    208331        $draft_id = wp_insert_post( array(
    209332            'post_type'    => 'wcb_sponsor',
     
    223346        }
    224347    }
     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
    225467} // end WordCamp_Forms_To_Drafts
    226468
Note: See TracChangeset for help on using the changeset viewer.