Support » Plugin: Tabber Widget » Moving wp-content folder breaks Tabber Widget

  • Hello,
    I’ve noticed that changing the location of the wp-content folder breaks this plugin because it’s not specifically coded to dynamically pull from WP_PLUGIN_DIR or WP_PLUGIN_URL in the database. It seems you’ve hard-coded the wp-content url into your plugin, rather than using global constants that are available. Is there some way of working around this? Ordinarily, I would be able to use the following type of example, but for some reason, I can’t seem to find the proper handle for your scripts and css.

    function deregister_tabber_js(){
    wp_enqueue_script('tabber_widget-idtabs', WP_PLUGIN_URL . '/tabber-widget/js/jquery.idTabs.min.js', array('jquery'),'3.1.1', false );
    function deregister_tabber_css(){
    wp_register_style('tabber_widget-tabber-widget-rounded-light', WP_PLUGIN_URL . '/tabber-widget/templates/rounded-light.css',array(), '3.1.1', false);
    add_action( 'wp_print_scripts', 'deregister_tabber_js');
    add_action( 'wp_print_styles', 'deregister_tabber_css');

    Please see here:
    WordPress Codex: Editing wp-config.php and moving wp-content


    How To Protect The wp-content Folder of WordPress

  • The topic ‘Moving wp-content folder breaks Tabber Widget’ is closed to new replies.