Changeset 2556264
- Timestamp:
- 06/30/2021 09:37:51 AM (3 years ago)
- Location:
- wpessential
- Files:
-
- 447 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
wpessential/trunk/inc/Theme/Setup.php
r2551814 r2556264 2 2 3 3 namespace WPEssential\Plugins\Theme; 4 5 use WPEssential\Plugins\Utility\OptionsPannel;6 use WPEssential\Plugins\Utility\Tgm;7 4 8 5 final class Setup … … 23 20 add_action( 'wp_body_open', 'wpe_header_template', 10 ); 24 21 self::theme_clases(); 22 25 23 self::register(); 26 24 add_action( 'wp_footer', 'wpe_footer_template', 0 ); … … 67 65 { 68 66 do_action( 'wpe_before_theme_setup' ); 69 Support::constructor(); 70 Images::constructor(); 71 Sidebars::constructor(); 72 Editor::constructor(); 73 Menus::constructor(); 74 if ( defined( 'WPE_TGM' ) && true === WPE_TGM ) { 75 Tgm::constructor(); 67 } 68 69 public static function attach_actions () 70 { 71 $action_list = apply_filters( 'wpe/theme/after_setup/hooks', [ 72 'Support' => [ 'callback' => [ 'WPEssential\Plugins\Theme\Support', 'constructor' ], 'priority' => 10 ], 73 'Images' => [ 'callback' => [ 'WPEssential\Plugins\Theme\Images', 'constructor' ], 'priority' => 20 ], 74 'Sidebars' => [ 'callback' => [ 'WPEssential\Plugins\Theme\Sidebars', 'constructor' ], 'priority' => 30 ], 75 'Editor' => [ 'callback' => [ 'WPEssential\Plugins\Theme\Editor', 'constructor' ], 'priority' => 40 ], 76 'Menus' => [ 'callback' => [ 'WPEssential\Plugins\Theme\Menus', 'constructor' ], 'priority' => 50 ], 77 'Tgm' => [ 'callback' => [ 'WPEssential\Plugins\Utility\Tgm', 'constructor' ], 'priority' => 60 ], 78 'OptionsPannel' => [ 'callback' => [ 'WPEssential\Plugins\Utility\OptionsPannel', 'constructor' ], 'priority' => 70 ], 79 'Widgets' => [ 'callback' => [ 'WPEssential\Plugins\Theme\Widgets', 'constructor' ], 'priority' => 80 ] 80 ] ); 81 82 $action_list = array_filter( $action_list ); 83 if ( ! empty( $action_list ) && $action_list ) { 84 foreach ( $action_list as $key => $action ) { 85 if ( ! wpe_array_get( $action, 'callback' ) && ! wpe_array_get( $action, 'priority' ) ) { 86 wp_die( __( "(wpe/theme/after_setup/hooks) => {$key} have no callback or priority", 'wpessential' ) ); 87 } 88 add_action( 'wpe_before_theme_setup', wpe_array_get( $action, 'callback' ), wpe_array_get( $action, 'priority' ) ); 89 } 76 90 } 77 OptionsPannel::constructor();78 Widgets::constructor();79 91 } 80 92 } -
wpessential/trunk/readme.txt
r2551871 r2556264 8 8 WC requires at least: 4.0 9 9 WC tested up to: 5.0 10 Stable tag: 1.0.0.0000 710 Stable tag: 1.0.0.0000 11 11 License: GPL v2 or later 12 12 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 56 56 == Changelog == 57 57 58 59 60 61 62 63 64 65 58 66 = 18/01/2021 1.0.0.00006 = 59 67 - Fix errors. -
wpessential/trunk/wpessential.php
r2551814 r2556264 13 13 * Plugin URI: https://wp.wpessential.org/plugins/wpessential/ 14 14 * Author: WPEssential 15 * Version: 1.0.0.0000 715 * Version: 1.0.0.0000 16 16 * Author URI: https://wpessential.org/ 17 17 * Text Domain: wpessential
Note: See TracChangeset
for help on using the changeset viewer.