Skip to content

Instantly share code, notes, and snippets.

@macariojames
Last active September 1, 2019 14:59
Show Gist options
  • Save macariojames/b9a3bb0684d645c1b580c44420e3993a to your computer and use it in GitHub Desktop.
Save macariojames/b9a3bb0684d645c1b580c44420e3993a to your computer and use it in GitHub Desktop.
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