SFWD_CPT
Description Description
Source Source
File: includes/class-ld-cpt.php
Methods Methods
- __construct — Set up post type and taxonomy to be registered
- activate
- add_post_type — Registers the custom post type, adds filter to register taxonomy and flushes rewrite rules after registration
- admin_menu — Sets up admin menu item for post type
- deactivate
- display_settings_values — Output the settings for post type
- get_settings_values — Get settings for post type
- loop_shortcode — Shortcode that generates a list of items in this post type
- register_tax — Sets up taxonomy to be registered, does not actually register the taxonomy
- shortcode — Set up shortcode for custom post type
- show_content — To show content or not