Forum Replies Created
-
AuthorPosts
-
January 31, 2026 at 7:02 AM in reply to: Conditional Logic Option to Delete meta for Hidden Fields #49705
Jacob Hill
ParticipantHi Peter, thank you for the response! I really do believe this should be a feature. Maybe a "remove field value when hidden" or something like that. When building workflows that are reliant on clean data, this causes a lot of issues.
January 30, 2026 at 12:30 PM in reply to: Conditional Logic Option to Delete meta for Hidden Fields #49696Jacob Hill
ParticipantI did see this old post as well: https://support.metabox.io/topic/disable-delete-fields-that-are-hidden-conditionally/
Jacob Hill
ParticipantHi Peter, thank you for letting me know! Is there a REST API endpoint that we can use to accomplish this?
December 31, 2024 at 9:27 AM in reply to: Select Choices Callback Function Executed on Front End #47273Jacob Hill
ParticipantHi Peter! The field group is not used in a front-end form (I'm not using that feature right now). The PHP function is included in my plugin's code, but is only called from the field's settings in Meta Box.
December 29, 2024 at 6:17 AM in reply to: Select Choices Callback Function Executed on Front End #47259Jacob Hill
ParticipantFor now I added logic to my callback function to check if the current page is_admin() and if the page is the edit/new page for the post type that uses the field.
I feel like Meta Box should include those checks though. ๐
Jacob Hill
Jacob Hill
ParticipantYes, I have the Meta Box FacetWP Integrator plugin and the Meta Box AIO plugin installed. Is that messed up, should I get rid of the standalone facetwp plugin?
Jacob Hill
Participant`[09-Jan-2023 22:27:25 UTC] PHP Fatal error: Cannot declare class MB_Relationships_FacetWP, because the name is already in use in .../wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-facetwp-integrator/class-mb-relationships-facetwp.php on line 0
November 8, 2022 at 12:10 AM in reply to: โ Possible to template_lock MB Block and still allow other blocks to be added? #38991Jacob Hill
ParticipantThanks very much, Peter!
November 5, 2022 at 10:55 AM in reply to: โ Possible to template_lock MB Block and still allow other blocks to be added? #38963Jacob Hill
ParticipantHi Peter! Thanks for the response!
I'm actually trying to create a template, and lock the meta-box/test block and prevent it from being removed, but allow other blocks to be added.
I looked into individual blocking, but wasn't able to get it working: https://developer.wordpress.org/block-editor/reference-guides/block-api/block-templates/#individual-block-locking
add_action( 'init', 'your_prefix_register_post_type' ); function your_prefix_register_post_type() { ... 'template' => array( array( 'core/paragraph' ), // Allow a Paragraph block to be moved or removed. array( 'meta-box/test', array( 'placeholder' => 'Add Description...', // "template_lock" => 'all', 'lock' => array( 'move' => true, 'remove' => true, ), ) ), ), ...Let me know if you have a solution. Thank you!
Jacob Hill
ParticipantI see that the devs have added the ability to save Gutenberg blocks as post_meta! Thank you very much, devs!
Jacob Hill
ParticipantGood Morning! Do you know if this enhancement (ability to save in post_meta from a block) was included in MB Builder 4? https://metabox.io/introducing-meta-box-builder-4/
Jacob Hill
ParticipantThanks for the the update! Is there a rough estimate on when the feature will be added to Meta Box?
Jacob Hill
ParticipantHello! Just checking in for an update. Happy new year!
Hello! Removing the
$prefixvariable did allow the content to be saved! Any tips on the code needed to save to post meta? Thanks in advance!Jacob Hill
ParticipantHello! Removing the
$prefixvariable did allow the content to be saved! Any tips on the code needed to save to post meta? Thanks in advance!Jacob Hill
ParticipantThank you!! That will be awesome! Any idea on the ETA for the feature?
In the interim, do you know why my block isn't saving data (1), and for (2), if there is a custom code workaround to save the block to post meta?
-
AuthorPosts