shortcode_atts_{$shortcode} filter not being applied

Support MB Frontend Submission shortcode_atts_{$shortcode} filter not being applied

  • This topic has 1 reply, 2 voices, and was last updated 1 year ago by PeterPeter.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #45135
    Saul CozensSaul Cozens
    Participant

    I've been trying to use a shortcode_atts_mb_frontend_form filter to set/override some default shortcode attributes. Specifically I want to force a ReCaptcha check on a certain FE form without relying on an editor to use the correct ReCaptcha keys in the shortcode.

    However, it seems that the Shotcode::shortcode function of MB Frontend Form does not use shortcode_atts before it renders the shortcode.

    A simple call to shortcode_attrs() with no defaults would allow me to override the shortcode attributes that editor uses (or doesn't).

    Am I able to achieve what I need another way, or do I need to request this as a new feature/bugfix?

    thanks

    Saul

    #45143
    PeterPeter
    Moderator

    Hello Saul,

    Currently, there isn't a filter hook to modify the attribute of the frontend shortcode. It could be a nice feature request. I will inform the development team to consider supporting a filter hook to modify the frontend shortcode attributes.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.