do_action for before and after field

Support General do_action for before and after fieldResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #44975
    Nicholas CoxNicholas Cox
    Participant

    hi

    Is there a do_action to target before and after a form input field? like you have for field groups
    do_action( 'rwmb_before', $meta_box );

    thanks

    Nick

    #44985
    PeterPeter
    Moderator

    Hello,

    No, unfortunately. The actions before and after are available at the field group level. If you want to add something to the field input, please use the filter hook
    https://docs.metabox.io/category/filters/

    #44997
    Nicholas CoxNicholas Cox
    Participant

    hi, ok thanks anyway

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