Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
AJAX Search Lite function_exists() - WordPress Plugin shortcode
<?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
You can’t perform that action at this time.