Widgets (P.S. Also, review OTHER MUST-HAVE PLUGINS FOR EVERYONE. ) Version: 1.15 Text Domain: add-scripts-short-codes-in-footer Domain Path: /languages Author: TazoTodua Author URI: http://www.protectpages.com/profile Plugin URI: https://www.protectpages.com/web-coding-programming-software/our-wordpress-plugins/ Donate link: http://paypal.me/tazotodua License: GPL3 License URI: https://www.gnu.org/licenses/gpl-3.0.html */ namespace AddScriptAndCodesInFooter; if (!defined('ABSPATH')) exit; include_once(__DIR__.'/____defaults.php'); class MyClass{ use \my_default_methods_T_Todua; public function __construct_my(){ add_action('wp_head', array($this, 'my_header_func') ); add_action('wp_loaded', array($this, 'my_footer_deregister'), 99); add_action('widgets_init', array($this, 'my_widgets_init') ); //add_action('plugins_loaded', array($this, 'plugin_loaded_my'), 11); } public function declare_static_settings(){ //multisite, singlesite, both $this->static_settings=array('show_opts'=>true, 'required_role'=>'manage_options', 'managed_from'=>'multisite', 'allowed_on'=>'multisite'); $this->user_initial_options = array( 'remove_footer' => false, 'footer_id' => '' ); } // ============================================================================================================== // // ============================================================================================================== // public function my_widgets_init(){ $value= 'footer-addition-asacif'; register_sidebar( array('name' => 'WP Footer Addition' ,'id' => strtolower($value), 'before_widget'=>'