AnsPress_PostTypes::init()
Description #
Initialize the class
Source #
File: includes/post-types.php
public static function init() { // Register Custom Post types and taxonomy. anspress()->add_action( 'init', __CLASS__, 'register_question_cpt', 0 ); anspress()->add_action( 'init', __CLASS__, 'register_answer_cpt', 0 ); anspress()->add_action( 'post_type_link', __CLASS__, 'post_type_link', 10, 4 ); anspress()->add_filter( 'post_type_archive_link', __CLASS__, 'post_type_archive_link', 10, 2 ); anspress()->add_filter( 'post_updated_messages', __CLASS__, 'post_updated_messages', 10 ); anspress()->add_filter( 'bulk_post_updated_messages', __CLASS__, 'bulk_post_updated_messages', 10, 2 ); }
Expand full source code Collapse full source code View on GitHub: includes/post-types.php:25
Add your comment