Code Element Ts

Make WordPress Page/Post Titles Accept Shortcodes

You can make WordPress Pages/Posts accept shortcodes by using the native the_title filter hook.

/**
 * Make page/post titles accept shortcodes
 */
add_filter('the_title', 'do_shortcode');