Forum Replies Created
-
AuthorPosts
-
June 20, 2018 at 9:01 PM in reply to: action rwmb_after_{$meta_box_id} or action for settings page #10277
Anh Tran
KeymasterYes, you can do that with the hook
mb_settings_page_load. It's the internal hook used to save the fields' values after the settings page is loaded. The process uses priority 10, so if you want to do something after that, you should use a higher priority, such as 20.Here is an example:
add_action( 'mb_settings_page_load', function ( $args ) { if ( $args['id'] === 'YOUR SETTINGS PAGE ID' ) { // Do something } }, 20 );Anh Tran
KeymasterHi Alex,
The Show Hide extension works for meta boxes only. To hide tabs, please use the Conditional Logic extension. Here is the tutorial on doing that.
Anh Tran
KeymasterHi, I've tested with lower role (subscriber) with the snippet above to allow it to upload images and it worked for me. Can you take a screenshot of the error? Or a screen record is perfect for debugging?
Anh Tran
KeymasterHi Max,
Can you try:
1 - Changing from number
7,9to string'7','9'? Or
2 - Using the term slugs instead of id?Anh Tran
KeymasterHi Alex,
The "before" is not a part of the field and thus, it cannot be controlled by the conditions.
Anh Tran
KeymasterI'm afraid manual is the only way to do that :(. There's no way to do that automatically.
Anh Tran
KeymasterHey guys, I've just fixed the update system. Please try again.
Anh Tran
KeymasterHi,
The extension is added to the latest version of Meta Box AIO. Please update it.
PS: The auto-updater is having a bug. I'm working on that. If you have a problem with the updater, please leave comments in this topic.
Anh Tran
KeymasterHi eolet,
I'm working on this issue. This bug was reported here. Let's discuss on that topic. I'll close this topic.
Anh Tran
KeymasterHi Nhan,
I'm working on this issue. This bug was reported here. Let's discuss on that topic. I'll close this topic.
Anh Tran
KeymasterHi Hazmi, sorry for late reply. To reorder the new added images, please just drag them to the position before the existing ones. The plugin already supports that.
Cheers
Anh Tran
KeymasterHi Alex,
The plugin supports all HTML5 input types, including
url. I've just added the documentation for that. Please take a look.The URL field requires the value starts with
http. I thinkwwwis not a valid protocol. See here for more info.Anh Tran
KeymasterLooks like this happens only when you create the field with MB Builder, doesn't it? I can replicate the bug with the builder. With pure code, it works.
-
AuthorPosts