Changeset 1302 for sites/trunk/wordcamp.org/public_html/wp-content/plugins/multi-event-sponsors/classes/mes-sponsorship-level.php
- Timestamp:
- 02/24/2015 07:58:53 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/multi-event-sponsors/classes/mes-sponsorship-level.php
r716 r1302 16 16 public function __construct() { 17 17 add_action( 'init', array( $this, 'create_post_type' ) ); 18 add_action( 'add_meta_boxes_' . self::POST_TYPE_SLUG, array( $this, 'remove_meta_boxes' ) );19 18 add_action( 'admin_init', array( $this, 'add_meta_boxes' ) ); 20 19 add_action( 'save_post', array( $this, 'save_post' ), 10, 2 ); 21 20 add_filter( 'the_content', array( $this, 'add_header_footer_text' ) ); 21 22 // todo readjust whitepsace after this commit 22 23 } 23 24 … … 58 59 'query_var' => true, 59 60 'supports' => array( 'title', 'editor', 'author', 'excerpt', 'revisions' ), 60 'taxonomies' => array( MES_ Sponsor::REGIONS_SLUG ),61 'taxonomies' => array( MES_Region::TAXONOMY_SLUG ), 61 62 ); 62 63 63 64 register_post_type( self::POST_TYPE_SLUG, $post_type_params ); 64 }65 66 /**67 * Remove the taxonomy meta boxes, since we don't assign them directly.68 *69 * @param WP_Post $post70 */71 public function remove_meta_boxes( $post ) {72 remove_meta_box( 'mes-regionsdiv', null, 'side' );73 65 } 74 66
Note: See TracChangeset
for help on using the changeset viewer.