Forum Replies Created
-
AuthorPosts
-
June 22, 2018 at 11:54 AM in reply to: How to allow editing field values thru Frontend Submission by the author only? #10305
Anh Tran
KeymasterHi,
Each submitted post will have an unique post ID. You need to get that ID and set it in the
post_idattribute of themb_frontend_formshortcode. That will allows user to edit the info.There is a similar topic that you might be interested in.
Anh Tran
KeymasterHi Guy,
Yes, you can do that. There's some snippets on the TGM Plugin Activation repo on Github.
I think you can do that with the following code (untested):
Anh Tran
KeymasterHi Guy,
Do you mean in the Meta Box AIO?
The plugin only requires the core Meta Box plugin. All other extensions are recommended. The text displays that correctly as shown in the following screenshot:
https://imgur.elightup.com/GqW73Gi.png
And in the list of plugins, it clearly states which one is required/recommended:
https://imgur.elightup.com/4MNZdwY.png
By the way, this UI is created by TGM Plugin Activation Class and the customization is quite limited.
June 22, 2018 at 11:20 AM in reply to: Please allow developers to remove the Dashboard from the new Global menu #10302Anh Tran
KeymasterHi Guy,
What/How do you want to "white label" the welcome page?
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.
-
AuthorPosts
