Table of Contents
Hide MotoPress Slider from menu
add_filter('mpsl_hide_menu', 'mpsl_hide_menu_foo');
function mpsl_hide_menu_foo($isHide){
return true;
}
Hide the license section
add_filter('mpsl_hide_license_page', 'mpsl_hide_license_page_foo');
function mpsl_hide_license_page_foo($isHide){
return true;
}
Hide the options section
add_filter('mpsl_hide_options_page', 'mpsl_hide_options_page_foo');
function mpsl_hide_options_page_foo($isHide){
return true;
}
Activate the license automatically
add_filter('mpsl_auto_license_key', 'mpsl_auto_license_key_foo');
function mpsl_auto_license_key_foo($key){
$key = '%your_license_key%';
return $key;
}
Disable the plugin update
add_filter('mpsl_disable_updater', 'mpsl_disable_updater_foo');
function mpsl_disable_updater_foo($isDisable){
return true;
}
Add your styles to MotoPress Slider
add_action('mpsl_slider_enqueue_style', 'my_mpsl_slider_enqueue_style');
function my_mpsl_slider_enqueue_style() {
wp_enqueue_style('mpsl-custom-style', plugins_url('demo-slider-custom.css', __FILE__), array(), '1.0.0');
}