• Hi all,
    is there a way to desactivate unusable plugins in mobile mode out of wp_deregister function ?

    for example I tried to desactivate SlideDeck plugin using this code in functions.php file :

    function site_init(){
    	if (!is_admin()) {
    		wp_deregister_script('slidedeck-library-js');
    	}
    }
    add_action('init', 'site_init');

    The function is executed but SlideDeck plugin is still registered in wp, style present in $GLOBALS[‘wp_scripts’] and style calling the js file.
    This make me crazy.

    http://ww.wp.xz.cn/extend/plugins/wordpress-mobile-pack/

The topic ‘[Plugin: WordPress Mobile Pack] Plugin desactivation in mobile mode’ is closed to new replies.