Last active
September 1, 2019 14:59
-
-
Save macariojames/b9a3bb0684d645c1b580c44420e3993a to your computer and use it in GitHub Desktop.
AJAX Search Lite function_exists() - WordPress Plugin shortcode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// When manually inputting shortcodes in WordPress themes with do_shortcode() i like to | |
// do a if (function_exists()) just in case something breaks. | |
// The plugin AJAX Search Lite didn't have anything in the documentation regarding what function | |
// is actually called so i had to look for it in the plugin files; it took 20 seconds. | |
// Figured this would help to save you 20 seconds. Cheers and peace ~mj | |
if( function_exists('wd_asl')) { | |
echo do_shortcode('[wpdreams_ajaxsearchlite]'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment