class-scf-beta-feature-editor-sidebar.php
1 year ago
class-scf-beta-feature.php
1 year ago
index.php
1 year ago
class-scf-beta-feature-editor-sidebar.php
39 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Editor Sidebar Beta Feature |
| 4 | * |
| 5 | * This beta feature allows moving field group elements to the editor sidebar. |
| 6 | * |
| 7 | * @package Secure Custom Fields |
| 8 | * @since SCF 6.5.0 |
| 9 | */ |
| 10 | |
| 11 | if ( ! defined( 'ABSPATH' ) ) { |
| 12 | exit; // Exit if accessed directly |
| 13 | } |
| 14 | |
| 15 | if ( ! class_exists( 'SCF_Admin_Beta_Feature_Editor_Sidebar' ) ) : |
| 16 | /** |
| 17 | * Class SCF_Admin_Beta_Feature_Editor_Sidebar |
| 18 | * |
| 19 | * Implements a beta feature to move field group elements to the editor sidebar |
| 20 | * for a cleaner interface. |
| 21 | * |
| 22 | * @package Secure Custom Fields |
| 23 | * @since SCF 6.5.0 |
| 24 | */ |
| 25 | class SCF_Admin_Beta_Feature_Editor_Sidebar extends SCF_Admin_Beta_Feature { |
| 26 | |
| 27 | /** |
| 28 | * Initialize the beta feature. |
| 29 | * |
| 30 | * @return void |
| 31 | */ |
| 32 | protected function initialize() { |
| 33 | $this->name = 'editor_sidebar'; |
| 34 | $this->title = __( 'Move Elements to Editor Sidebar', 'secure-custom-fields' ); |
| 35 | $this->description = __( 'Moves field group elements to the editor sidebar for a cleaner interface.', 'secure-custom-fields' ); |
| 36 | } |
| 37 | } |
| 38 | endif; |
| 39 |