Possible Bug on rwmb_after_save_post

Support General Possible Bug on rwmb_after_save_postResolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #37530
    WolfgangWolfgang
    Participant

    Hey There,

    I think I found a possible bug on the action 'rwmb_after_save_post' ttps://docs.metabox.io/actions/rwmb-after-save-post/

    I would assume that this action fires only once whenever a post is saved. However it seems that this action fires once for every created Field Group assigned to that post. Is that intended behaviour or just a bug?

    I'm just creating a integration with google Indexing API and I want to ping google every time my job-postings are saved/updated to reindex my site. As things are behaving now it would call google 3 times whenever a post is updated now!

    TIA for your help

    #37533
    WolfgangWolfgang
    Participant

    Ok sorry my fault. I wasn't able to combine my wording "field-group" with the wording "field-group" inside the docs where it says that it applies to specific field groups by using the filter like so:
    do_action( "rwmb_{$field_group_id}_after_save_post", $object_id );

    Sorry for that! Please feel free to delete my post!

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