Changeset 1288
- Timestamp:
- 02/20/2015 07:57:12 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-new-site.php
r1120 r1288 9 9 public function __construct() { 10 10 $this->new_site_id = false; 11 11 12 12 add_action( 'wcpt_metabox_value', array( $this, 'render_site_url_field' ), 10, 3 ); 13 13 add_action( 'wcpt_metabox_save', array( $this, 'save_site_url_field' ), 10, 3 ); … … 210 210 211 211 if ( $page_id ) { 212 // Save post meta 213 if ( ! empty( $page['meta'] ) ) { 214 foreach ( $page['meta'] as $key => $value ) { 215 update_post_meta( $page_id, $key, $value ); 216 } 217 } 218 212 219 // Set featured image 213 220 if ( isset( $page['featured_image'] ) ) { … … 448 455 'title' => __( 'Call for Speakers', 'wordcamporg' ), 449 456 'content' => 450 '<p>' . __( '<em>Organizers note:</em> Make sure you update the "to" address and other fields before publishing this page!', 'wordcamporg' ) . '</p> ' .451 '<p>' . __( 'Blurb with information for potential speakers.', 'wordcamporg' ) . '</p> ' .457 '<p>' . __( '<em>Organizers note:</em> Submissions to this form will automatically create draft posts for the Speaker and Session post types. Feel free to customize the form, but deleting or renaming the following fields will break the automation: Name, Email, WordPress.org Username, Your Bio, Session Title, Session Description.', 'wordcamporg' ) . '</p>' . 458 '<p>' . __( "If you'd like to propose multiple topics, please submit the form multiple times, once for each topic. [Other speaker instructions/info goes here.]", 'wordcamporg' ) . '</p>' . 452 459 '<p>' . 453 460 sprintf( ' 454 [contact-form to="enter-your-address-here@example.net" subject="%s"] 461 [contact-form subject="%s"] 462 [contact-field label="%s" type="name" required="1" /] 463 [contact-field label="%s" type="email" required="1" /] 455 464 [contact-field label="%s" type="text" required="1" /] 456 [contact-field label="%s" type="email" required="1" /] 465 [contact-field label="%s" type="textarea" required="1" /] 466 [contact-field label="%s" type="text" required="1" /] 457 467 [contact-field label="%s" type="textarea" required="1" /] 458 468 [contact-field label="%s" type="text" required="1" /] … … 461 471 __( 'WordCamp Speaker Request', 'wordcamporg' ), 462 472 __( 'Name', 'wordcamporg' ), 463 __( 'Email', 'wordcamporg' ), 464 __( 'Topic(s) You would Like to Present On', 'wordcamporg' ), 473 __( 'Email Address', 'wordcamporg' ), 474 __( 'WordPress.org Username', 'wordcamporg' ), 475 __( 'Your Bio', 'wordcamporg' ), 476 __( 'Topic Title', 'wordcamporg' ), 477 __( 'Topic Description', 'wordcamporg' ), 465 478 __( 'Intended Audience', 'wordcamporg' ), 466 479 __( 'Past Speaking Experience (not necessary to apply)', 'wordcamporg' ) … … 469 482 'status' => 'draft', 470 483 'type' => 'post', 484 'meta' => array( 485 'wcfd-key' => 'call-for-speakers', 486 ), 471 487 ), 472 488
Note: See TracChangeset
for help on using the changeset viewer.