• Resolved aaronrobb

    (@aaronrobb)


    I’m using the shortcode within my template file using the normal do_shortcode but was wondering how I could add php to the protected content? Basically i want to load a “get_template_part()” inside the shortcode since the content that is protected is coded and not just wysiwyg text.

    Is there a good way to do that?

Viewing 1 replies (of 1 total)
  • Thread Starter aaronrobb

    (@aaronrobb)

    Update: Just used the “if ( current_user_can( ‘capability_name’ ) )” snippet and that works fine with a custom capability for a custom role.

Viewing 1 replies (of 1 total)
  • The topic ‘Add php inside the shortcode?’ is closed to new replies.