Plugin Author
Jose
(@giuse)
Hi @fredericlegrand
the right code would be this:
if( wp_is_mobile() ){
if( defined( ‘EOS_INIT_ACTIVE’ ) && EOS_INIT_ACTIVE ){
//Whatever you need to fire
add_shortcode( ‘ywfbt_form’,’__return_false’ );
}
}
You have to put only the name of the shortcode, and be careful about the underscores in “__return_false’. There are two underscores before the word before return_false.
The code above will work supposing the main file of the plugin that introduces the shortcode is init.php.
thks Jose for quick support
I hope you ll be making good money with pro version soon
You can put me on beta user
You should make that mobile deactivate feature a paid version
Plugin Author
Jose
(@giuse)
Hi @fredericlegrand
you are welcome! Thank you very much, also for the idea!
In the future, the PRO version will give the possibility to disable plugins on mobile on specific pages,
The free version will continue to give the possibility to disable them on mobile but without taking into account specific pages.
In a near future, I will need beta testers. Thank you for the offer!
Back to same topic
add_shortcode(‘[ywfbt_form id=”001″]’,’__return_false’ );
do you think it s possible to filter it by ID too?