post_types(); remove_meta_box('authordiv', $postTypesArray, 'normal'); } /** * * @global type $post_ID */ public function author_in_publish() { global $post_ID; // Add an nonce field so we can check for it later. wp_nonce_field('mb-author-box-pro-meta-activate-nonce', 'mb-author-box-pro-meta-activate-nonce-action'); $post = get_post($post_ID); echo '
' . __('Select Author', 'author-box-pro') . ':'; post_author_meta_box($post); echo '
'; echo '
'; // Use get_post_meta to retrieve an existing value from the database. $value = get_post_meta($post->ID, 'mb-author-box-pro-meta-activate', true); // Display the form, using the current value. ?> value="on"> '; } } new MB_AUTHOR_BOX_META_BOXS(); }