Question : wordpress check shortcode exists
Answered by : mattia-consiglio
<?php
if ( shortcode_exists( 'gallery' ) ) { // The [gallery] short code exists.
}
?>
Source : https://codex.wordpress.org/Function_Reference/shortcode_exists | Last Update : Fri, 27 Mar 20