Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterHi Marge,
- When password is added via
rwmb-user-infometa box, it's always required. You can change it with therwmb_profile_info_fieldsfilter.
add_filter( 'rwmb_profile_info_fields', function( $fields ) { $fields['password']['required'] = false; $fields['password2']['required'] = false; return $fields; } );-
I don't see that problem on my localhost. Please see this video. Please check in the user profile to see if the user has set first name = username.
-
It's possible. You need to hook to get avatar function to change the avatar URL.
-
The image field actually doesn't show any file name. If you meant the "file" field, then yes, it shows only the file name.
-
You can hook to
rwmb_profile_info_fieldsto add email fields to add email field, like this:
add_filter( 'rwmb_profile_info_fields', function( $fields ) { $fields['email'] = [ 'name' => 'Email', 'id' => 'user_email', 'type' => 'email', ]; return $fields; } );October 22, 2019 at 9:45 AM in reply to: message: "The WordPress Rest API has been locked to authorized access only. #16647Anh Tran
KeymasterHi Sam,
You can disable MB REST API in the Meta Box AIO settings and use an earlier version of it from wordpress.org.
The plugin doesn't have any control on access permission. Please try deactivating it, and use only FacetWP to see if the problem still happens.
Anh Tran
Keymasteris there any way to avoid it ?
I'm afraid not. You might need to work on jQueryUI date picker to prevent this from happening.
But this will also be time consuming for user to create those things manually
You can also set the default value for groups. See the docs for details: https://docs.metabox.io/extensions/meta-box-group/#setting-default-group-values
Anh Tran
KeymasterThanks for your feedback. I'll check and fix it.
Anh Tran
KeymasterIf your clients want to set time slots for each day, then you can use MB Group to do that, something like this (this is a group field):
[ 'type' => 'group', 'name' => 'Time Slots', 'clone' => true, 'fields' => [ [ 'id' => 'start', 'type' => 'time', 'name' => 'Start', ], [ 'id' => 'end', 'type' => 'time', 'name' => 'End', ], ], ]Then you can get the slots in the front end for your booking app:
echo '<select>'; $slots = rwmb_meta( 'slots' ); foreach ( $slots as $k => $slot ) { echo '<option value="' . $k . '">' . $slot['start'] . ' - ' . $slot['end'] . '</option>'; } echo '</select>';Some notes: Your problem is very specific and what I'm trying to help you here is just an idea how to do that. This is out of the support scope. So, please understand it's might not a correct/final solution.
October 21, 2019 at 11:47 AM in reply to: ✅How to find out (via PHP code) what extensions are activated by Metabox AIO? #16624Anh Tran
KeymasterHi,
The better way to check is via
function_existsorclass_exists. For MB Term Meta, this check will work:if ( function_exists( 'mb_term_meta_load' ) ) { }Anh Tran
KeymasterHi,
You need to provide the option name in the settings page and put it in the 3rd parameter:
$settingData = rwmb_meta( 'bike_resources_detail', ['object_type' => 'setting'], $option_name );Anh Tran
KeymasterHi Akram,
Please give us some time to answer your ticket. Your ticket was submitted at 2:37 AM and I'm answering now.
Can you provide more details on the meaning of time slots you're trying to create? Are there any rules for time slots?
Anh Tran
KeymasterHi Sandra,
I've just checked your license key and see it works as expected. Can you check if you have Meta Box Updater installed? If yes, please remove it. It's not needed anymore.
Anh Tran
KeymasterPlease try setting
query_varandpublicly_queryabletotrue.Anh Tran
KeymasterFYI, I fixed the bug in the version 2.0.5 of MB Frontend Submission.
Anh Tran
KeymasterHi Mary,
Sorry for the delay. I've looked at the
wp-cron.phpfile at line 111 and see it's a WordPress code that loops through a list of registered crons. The another line of errorwp_privacy_delete_old_export_filestells us this is a WP cron that delete old exported privacy files.All of that relates to the WP crons. I'll check your code in the email.
Anh Tran
KeymasterHi Will,
Your solution on sanitize callback is true. In Meta Box 5.1, we introduced the sanitization mechanism to make the data safe before saving into the DB.
For choice fields, the value stored is considered safe only if it's available in the field's options. In this case, the options is dynamically populated via Ajax, the sanitization will break.
One solution is bypass it at all, as you did. Another solution is write your own callback. Both should work well.
Anh Tran
KeymasterHi Manoj,
To update a cloneable group field, please use this snippet:
$values = []; $values[] = [ 'sub_field_1' => 'value1', 'sub_field_2' => 'value2' ]; // Value of clone 1 $values[] = [ 'sub_field_1' => 'value1', 'sub_field_2' => 'value2' ]; // Value of clone 2 update_post_meta( $post_id, 'group_id', $values );Anh Tran
KeymasterHi Tobias,
Here is a very detailed guide on this: https://developer.wordpress.org/rest-api/extending-the-rest-api/adding-custom-endpoints/
- When password is added via
-
AuthorPosts