Slider Revolution WP
09.06.2016
1 2 3 4 5 6 7 |
add_filter('essgrid_set_cpt', 'remove_ess_grid_cpt', 10, 2); function remove_ess_grid_cpt($val){ return false; } |
The code can be added to the plugin’s “essential-grid.php” file, which can be found here:
wp-content/plugins/essential-grid/essential-grid.php
Inside this file, around line #134, look for this code block:
1 2 3 |
if(is_admin()){ |
Then add the snippet to the very bottom of this block, so it would look like this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
add_action('plugins_loaded', array( 'Essential_Grid_Admin', 'get_instance' )); add_action('plugins_loaded', array( 'Essential_Grid_Admin', 'visual_composer_include' )); //VC functionality //add_action('init', array('Essential_Grid_Admin', 'visual_composer_include')); //VC functionality // CUSTOM SNIPPET ADDED HERE add_filter('essgrid_set_cpt', 'remove_ess_grid_cpt', 10, 2); function remove_ess_grid_cpt($val){ return false; } } |