function __construct() { //add_action( 'init', array( $this, 'register_post_type' ) ); add_action('init', array($this, 'register_post_statues')); /*Add Coulumn*/ add_filter('manage_edit-lp_order_columns', array($this, 'columns_head')); add_action('manage_lp_order_posts_custom_column', array($this, 'columns_content')); add_action('pre_get_posts', array($this, 'pre_get_posts')); add_filter('post_row_actions', array($this, 'post_row_actions'), 10, 2); add_filter('page_row_actions', array($this, 'post_row_actions'), 10, 2); add_filter('manage_edit-lp_order_sortable_columns', array($this, 'sortable_columns')); // Disable Auto Save add_action('admin_print_scripts', array($this, 'disable_autosave')); add_action('admin_init', array($this, 'remove_box')); add_action('admin_enqueue_scripts', array($this, 'enqueue_scripts')); /*add_filter( 'posts_orderby', array( $this, 'posts_orderby' ) ); add_filter( 'posts_join_paged', array( $this, 'posts_join_paged' ) ); add_filter( 'posts_fields', array( $this, 'posts_fields' ) ); add_filter( 'posts_where_paged', array( $this, 'posts_where_paged' ) ); add_action( 'wp_ajax_update_order_status', array( $this, 'update_status' ) ); add_action( 'admin_head', array( $this, 'admin_head' ) ); add_action( 'wp_trash_post', array( $this, 'preparing_to_trash_order' ) ); */ //add_action( 'wp_trash_post', array( $this, 'preparing_to_trash_order' ) ); add_action('before_delete_post', array($this, 'delete_order_items')); add_action('save_post', array($this, 'save_order')); parent::__construct(); }
function __construct() { //add_action( 'init', array( $this, 'register_post_type' ) ); //add_action( 'admin_head', array( $this, 'enqueue_script' ) ); //add_action( 'admin_init', array( $this, 'add_meta_boxes' ), 5 ); add_filter('manage_lp_question_posts_columns', array($this, 'columns_head')); add_action('manage_lp_question_posts_custom_column', array($this, 'columns_content'), 10, 2); add_filter('posts_join_paged', array($this, 'posts_join_paged')); parent::__construct(); }
/** * Constructor */ function __construct() { add_action('rwmb_course_curriculum_before_save_post', array($this, 'before_save_curriculum')); add_filter('manage_lp_course_posts_columns', array($this, 'columns_head')); add_filter('manage_lp_course_posts_custom_column', array($this, 'columns_content')); add_filter("rwmb__lpr_course_price_html", array($this, 'currency_symbol'), 5, 3); add_action('edit_form_after_editor', array($this, 'toggle_editor_button'), -10); add_action('add_meta_boxes', array($this, 'review_logs_meta_box')); add_action('post_submitbox_start', array($this, 'post_review_message_box')); add_action('learn_press_transition_course_status', array($this, 'review_log'), 10, 3); add_action('load-post.php', array($this, 'post_actions')); parent::__construct(); }
function __construct() { $post_type_name = 'lp_lesson'; add_filter('manage_' . $post_type_name . '_posts_columns', array($this, 'columns_head')); add_action('manage_' . $post_type_name . '_posts_custom_column', array($this, 'columns_content'), 10, 2); add_action('save_post_' . $post_type_name, array($this, 'update_lesson_meta')); // filter add_filter('posts_fields', array($this, 'posts_fields')); add_filter('posts_join_paged', array($this, 'posts_join_paged')); add_filter('posts_where_paged', array($this, 'posts_where_paged')); add_filter('posts_orderby', array($this, 'posts_orderby')); add_filter('manage_edit-' . $post_type_name . '_sortable_columns', array($this, 'columns_sortable')); parent::__construct(); }
function __construct() { add_action('admin_head', array($this, 'enqueue_script')); add_filter('manage_lp_quiz_posts_columns', array($this, 'columns_head')); add_action('manage_lp_quiz_posts_custom_column', array($this, 'columns_content'), 10, 2); add_action('save_post_lpr_quiz', array($this, 'update_quiz_meta')); add_action('admin_head', array($this, 'print_js_template')); //add_filter( 'posts_fields', array( $this, 'posts_fields' ) ); //add_filter( 'posts_join_paged', array( $this, 'posts_join_paged' ) ); //add_filter( 'posts_where_paged', array( $this, 'posts_where_paged' ) ); //add_filter( 'posts_orderby', array( $this, 'posts_orderby' ) ); //add_filter( 'manage_edit-lpr_quiz_sortable_columns', array( $this, 'columns_sortable' ) ); add_action('save_post', array($this, 'save')); parent::__construct(); }
function __construct() { add_action('admin_head', array($this, 'init')); //add_action( 'init', array( $this, 'register_post_type' ) ); //add_action( 'admin_head', array( $this, 'enqueue_script' ) ); //add_action( 'admin_init', array( $this, 'add_meta_boxes' ), 5 ); add_filter('manage_lp_question_posts_columns', array($this, 'columns_head')); add_action('manage_lp_question_posts_custom_column', array($this, 'columns_content'), 10, 2); add_filter('posts_join_paged', array($this, 'posts_join_paged')); add_action('before_delete_post', array($this, 'delete_question_answers')); //add_filter( 'posts_fields', array( $this, 'posts_fields' ) ); add_filter('posts_where_paged', array($this, 'posts_where_paged')); add_filter('posts_orderby', array($this, 'posts_orderby')); add_filter('manage_edit-lp_question_sortable_columns', array($this, 'columns_sortable')); parent::__construct(); }