/** * Menu page display. */ function wpcf_admin_menu_summary_cpt() { wpcf_add_admin_header(__('Post Types', 'wpcf'), array('page' => 'wpcf-edit-type'), __('Add New', 'wpcf')); $to_display_posts = get_option(WPCF_OPTION_NAME_CUSTOM_TYPES, array()); $to_display_tax = get_option(WPCF_OPTION_NAME_CUSTOM_TAXONOMIES, array()); if (!empty($to_display_posts) || !empty($to_display_tax)) { add_action('wpcf_types_tax_list_table_after', 'wpcf_admin_promotional_text'); } wpcf_admin_custom_post_types_list(); wpcf_add_admin_footer(); }
/** * Menu page display. */ function wpcf_admin_menu_summary_cpt() { wpcf_add_admin_header(__('Custom Post Types', 'wpcf'), array('page' => 'wpcf-edit-type'), __('Add New Custom Post Type', 'wpcf')); $to_display_posts = get_option('wpcf-custom-types', array()); $to_display_tax = get_option('wpcf-custom-taxonomies', array()); if (!empty($to_display_posts) || !empty($to_display_tax)) { add_action('wpcf_types_tax_list_table_after', 'wpcf_admin_promotional_text'); } wpcf_admin_custom_post_types_list(); wpcf_add_admin_footer(); }