Skip to content

Instantly share code, notes, and snippets.

@verygoodplugins
Last active February 15, 2021 23:21
Show Gist options
  • Save verygoodplugins/8aa81e4c7348ba1af0fb6399eafa8eaf to your computer and use it in GitHub Desktop.
Save verygoodplugins/8aa81e4c7348ba1af0fb6399eafa8eaf to your computer and use it in GitHub Desktop.
Allow [wpf] shortcodes inside of eachother
<?php
function wpf_alt_shortcode() {
if( ! is_admin() ) {
$wpf_shortcodes = new WPF_Shortcodes;
add_shortcode( 'wpf2', array( $wpf_shortcodes, 'shortcodes' ) );
}
}
add_action('wp_loaded', 'wpf_alt_shortcode');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment