'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, mktime( 8, 3, 0, 3, 20, 1996 ) ), ), array( 'ID' => 2, 'post_author' => isset($users[1]) ? $users[1]->display_name : $users[0]->display_name, 'title' => date_i18n( $datef, mktime( 8, 20, 0, 6, 20, 1997 ) ), ), array( 'ID' => 3, 'post_author' => isset($users[2]) ? $users[2]->display_name : $users[0]->display_name, 'title' => date_i18n( $datef, mktime( 5, 37, 0, 9, 22, 1998 ) ), ), ); ?>
/>

↑ This is only an example, not real data. ↑

Note: currently the revisions are not being saved. They start getting saved at the moment the plugin's pro version is installed.