'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; } ?>
__('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}]'; ?>/> | ||||
↑ 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. |