Altering field options after $wp_query is set

Support MB Frontend Submission Altering field options after $wp_query is set

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #39164
    Catherine O'BrienCatherine O'Brien
    Participant

    I am looking to use post meta data as a set of options for a radio field, but metabox registration happens to early in the WP execution order to know which post is being edited. I would assume there is a way to filter this after the fact before it is displayed, but I've been searching two hours and coming up blank.

    I *think* I have something here with rwmb_get_registry( 'field' ), but I am only seeing getter methods in the docs and I need to set. Thoughts? Gentle push in the general right direction?

    #39176
    PeterPeter
    Moderator

    Hello Catherine,

    There is a similar question that you can find the answer here https://support.metabox.io/topic/modify-meta-box-fields-after-post-has-been-parsed-initialized

    #39178
    Catherine O'BrienCatherine O'Brien
    Participant

    According to that answer it's not possible, which is a major flaw in the system IMHO. You have a registry and storage, why can't that registry be tweaked at any point?

    Unfortunately, I am behind on this project so I am reticent to abandon metabox for another solution at this juncture. I may have to write a custom plugin with it's own form handing to make this one small bit work and that chafes.

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