Piipapa
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
All right, I’m sorry about my question!
This error occurs because of a conflict with the “Enable Copy Protection” feature of All In One WP Security.
“When admin user is logged in, the feature is automatically disabled for his session.”
Disabling this feature will allow all roles to edit images.OK, this is the good solution, it’s work:
add_filter( 'um_edit_id_01_field_value', 'my_edit_field_value', 10, 2 ); function my_edit_field_value( $value, $key ) { // your code here $value = "myText"; return $value; }Thanks! I tried it but it doesn’t work.
I have pasted the code into the functions.php file as it is in the examples.add_filter ('um_edit_id_01_field_value', 'my_edit_field_value', 10, 2); function my_edit_field_value ($ value, $ key) { // your code here return 'test text'; }But it’s not working. What is wrong in it?
Viewing 3 replies - 1 through 3 (of 3 total)