public function init()
 {
     // Strip Hooks
     remove_action('init', 'x_shortcodes_init');
     remove_action('admin_init', array(XSG::instance(), 'admin_init'));
     remove_action('wp_ajax_xsg_list_shortcodes', array(XSG::instance(), 'model_endpoint'));
     remove_action('admin_init', 'x_shortcodes_version_migration');
     remove_action('admin_notices', 'x_shortcodes_pairing_notice');
     remove_filter('user_contactmethods', 'x_modify_contact_methods');
     // Encourgage users to remove X Shortcodes
     add_action('admin_notices', array($this, 'pleaseDeleteXShortcodes'));
     // Continue to output the X Shortcodes Body Class
     add_filter('body_class', array($this, 'bodyClass'), 10001);
     // 1
 }
Exemplo n.º 2
0
 public static function init()
 {
     self::$instance = new self();
 }
Exemplo n.º 3
0
function xsg_remove($shortcode)
{
    XSG::instance()->map()->remove($shortcode);
}