• Resolved desene2019

    (@desene2019)


    Hi! How to add shortcode for recaptcha v2 in php code?

    I try:

    <?php if( echo do_shortcode('[passster recaptcha="true"]') ): ?>
    
    content here
    
    <?php echo do_shortcode('[/passster]'); endif; ?>

    but don t work.

Viewing 1 replies (of 1 total)
  • Plugin Author patrickposner

    (@patrickposner)

    Hey @desene2019,

    that will not work.

    Normally that would have been done with passster\PS_Conditional::is_valid( $atts);

    But it’s really not that easy and requires a bit of a deep dive into the code.

    It’s one of my priorities for 2021 to make it easier for developers to use Passster within a template context.

    Best regards,
    Patrick

Viewing 1 replies (of 1 total)
  • The topic ‘do_shortcode for recaptcha v2’ is closed to new replies.