WordPress Check Shortcode Exists

<?php

if ( shortcode_exists( 'gallery' ) ) {
 // The  short code exists.
}

?>

Leave a Comment