Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterAnh Tran
KeymasterHello,
The clone feature uses jQuery and when a clone event is fired, it loops through all the inputs, updating their indexes, values and name attribute. The more inputs, the longer the process take.
I have improved the speed of cloning in this ticket. I'd suggest you reduce the number of inputs and use the wysiwyg field for some cases. Here is an interesting discussion about this.
Anh Tran
KeymasterI got it. I thought the tabs in the MB Tabs extension.
Anyway, have you tried using this selector
a[href*="tab-general"]?Regarding the CSS class for settings pages, yes, it's only available for fields.
June 21, 2018 at 1:58 PM in reply to: action rwmb_after_{$meta_box_id} or action for settings page #10288Anh Tran
KeymasterNo, it's created for internal use. I'll add it to the docs right now.
Anh Tran
KeymasterAll files in the plugins will be removed and replaced by the new files in the newer versions. So do not keep the language files in the plugin folder. Instead, you can:
- Send me the translation files, so I can update the extensions with the new translations! That will help other people!
- Or you can keep your translation locally in the
wp-content/languages/plugins/PLUGIN-SLUG/folder. WordPress will use the translation files in this folder if they're available. If you use the Loco Translate plugin to translate the plugins, it has option to save file to this folder.
June 20, 2018 at 9:01 PM in reply to: action rwmb_after_{$meta_box_id} or action for settings page #10277Anh 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.
-
AuthorPosts
