'add_meta_boxes', 'edit_form_advanced' => 'only_premium', ); foreach( $actions as $_key => $_value ) { add_action( $_key, array( $this, $_value ) ); } } function only_premium() { $current_screen = get_current_screen(); if ( $current_screen->post_type != 'custom-css-js' ) { return false; } ?>
Simple Custom CSS and JS Pro', 'custom-css-js'); ?>
__('All Website', 'custom-css-js'), 'first-page' => __('Homepage', 'custom-css-js'), 'contains' => __('Contains', 'custom-css-js'), 'not-contains' => __('Not contains', 'custom-css-js'), 'equal-to' => __('Is equal to', 'custom-css-js'), 'not-equal-to' => __('Not equal to', 'custom-css-js'), 'begins-with' => __('Starts with', 'custom-css-js'), 'ends-by' => __('Ends by', 'custom-css-js'), ); $filters_html = ''; foreach( $filters as $_key => $_value ) { $filters_html .= ''; } $applied_filters = '[{"value":"","type":"all","index":1}]'; ?>
    3)); $revisions = array( array( 'ID' => 1, 'post_author' => $users[0]->display_name, 'title' => date_i18n( $datef, time() - 86400 ), ), array( 'ID' => 2, 'post_author' => isset($users[1]) ? $users[1]->display_name : $users[0]->display_name, 'title' => date_i18n( $datef, time() - 87639), ), array( 'ID' => 3, 'post_author' => isset($users[2]) ? $users[2]->display_name : $users[0]->display_name, 'title' => date_i18n( $datef, time() - 97639), ), ); ?>
/>
↑ This is only an example, not real data. ↑