rwmb_{$meta_box_id}_after_save_post doesn't fire

Support General rwmb_{$meta_box_id}_after_save_post doesn't fireResolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #34033
    uptwouptwo
    Participant

    Hey,

    i have the latest Metabox AIO installed.

    add_action( 'rwmb_after_save_post', function( $post_id ) {
        error_log('Action is Fired');
    } );
    

    Works just fine!

    add_action( 'rwmb_testfield_after_save_post', function( $post_id ) {
        error_log('Action is Fired');
    } );
    

    Doesn't fire. Where 'testfield' is a simple textfield assigned to a Cpt.

    What am i doing wrong?

    #34041
    Long NguyenLong Nguyen
    Moderator

    Hi,

    As the hook name rwmb_{$meta_box_id}_after_save_post, you can use this hook to perform an extra action after saving a metabox. If you want to perform an extra action after saving a field, please use this hook rwmb_{$field_id}_after_save_field. Read more on the documentation https://docs.metabox.io/actions/#rwmb_after_save_field

    rwmb_testfield_after_save_field

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