I am new to wordpress plugin development, but any how I have developed two shortcodes i.e. [MY_SHORTCODE] and [MY_SHORTCODE_MOBILE], both are working fine but now I want to do one enhancement in it, that is, I want to write a new shortcode which detect the device, if the detected device is mobile than I want to call the shortcode [MY_SHORTCODE_MOBILE] otherwise I want to call [MY_SHORTCODE]. How can I do this ? please help me guys .
I am new to wordpress plugin development, but any how I have developed two
Share
i got it your problem that you want to run short code base on browser or mobile device.
Download php file for mobile detect code and put below code where do you want to run short code