Forum Replies Created
-
AuthorPosts
-
woorise
ParticipantIt's working fine now. Thank you!
woorise
ParticipantHere is an example: https://pastebin.com/iYqZD5Ui
Just to note again that in version 1.0.1 it's working fine.
woorise
Participant'tooltip' => esc_html__( 'my text', 'textdomain' ),
woorise
ParticipantI did it but I didn't get any information that I could use.
For now I am checking external conditions like user role, post taxonomies etc. but it would be useful if there was a more direct way related to the field.
woorise
ParticipantYes I am using upload_dir filter.
woorise
ParticipantThank you for your answers. Most of the times I am using get_user_meta or get_post_meta.
My users have access mostly on backend and even using is_admin() it will still load for example in the dashboard.
woorise
ParticipantThank you! Now it's working fine!
woorise
ParticipantThank you for the fast update!
I saw that you have add "edited_user_role" and "edited_user_id" parameter in the 1.0.9 version but when I am trying to update the plugin I get the 1.0.8 version even with manual download.
woorise
ParticipantThank you for your answer.
I tried the following on a "select_advanced" field but if I first open the dropdown then it doesn't enable the option.
jQuery(document).ready(function(){ jQuery("#status option[value='23']").prop("disabled", true); jQuery('.rwmb-file_upload').on( 'change', function( event, items ) { if ( items.length ) { jQuery("#status option[value='23']").prop("disabled", false); } }); });woorise
ParticipantThank you for the tip is very useful.
I actually want to hide a meta box (I just have only one field).
I tried the following code in order to make the meta box available only to administrators but administrators can't see the meta box when editing other users profile with role "myrole". Maybe there is a bug here.
'include' => array(
'user_role' => 'administrator',
),woorise
ParticipantWhat I want to do is to hide a profile field from a user with custom role "myrole" but administrator will be able to edit that field.
Is that possible?
Thanks.
woorise
ParticipantI see. So I need to do this manual.
Can you please give me some info on what event is triggered when we use the "file_upload" field so I can disable/enable the select option if the user upload a file.
I tried the code above but it doesn’t work properly.
woorise
ParticipantThank you for the quick respond.
Is possible to add the "disable" property in the toggle_type option?
If not how can I check if the file_upload is empty or not when the file_upload is change?
I tried the following but it doesn't work properly:
jQuery('.rwmb-file_upload').on( 'change', function() { var uploaded = jQuery('.rwmb-media-input').val(); if ( uploaded ) { //code here } });woorise
ParticipantHello Anh,
Do you have any update on this?
Thanks!
woorise
ParticipantThanks for the quick respond Anh 🙂
-
AuthorPosts