“woocommerce_form_field()” function having issues after latest woocommerce update [closed]
In version 4.2.1 they add the function esc_html to the option text. Here the link to version 4.2.0 for comparison.
In version 4.2.1 they add the function esc_html to the option text. Here the link to version 4.2.0 for comparison.
Add this code to your functions.php: function hide_menu_items( $items ) { if ( is_page( ‘Enterprise’ ) ) { // You can use page ID, slug or title here foreach ($items as $key => $item) if ( $item->title == “Blog” ) unset( $items[$key] ); } return $items; } add_filter( ‘wp_get_nav_menu_items’, ‘hide_menu_items’, 20 );
add_shortcode( ‘dashtest’, function () { $user_id = get_current_user_id(); $key = ‘user_wpc’; $single = true; $user_last = get_user_meta( $user_id, $key, $single ); if ($user_id == 0) { echo ‘You are currently not logged in.’; } else { echo do_shortcode(‘[userwpcode key=”‘.$user_last.’/edit”]’); } } );
Here is the code based on custom SQL query as suggested by @Rup that should work for you: // get ‘-1 month’ and ‘+2 month’ dates as an array(‘YYYY’, ‘MMDD’) $before = str_split( gmdate( ‘Ymd’, strtotime( ‘-1 month’ ) ), 4 ); $after = str_split( gmdate( ‘Ymd’, strtotime( ‘+2 month’ ) ), 4 ); // … Read more
CF7 has an useful hook wpcf7_submit that can be used to process the data sent: add_action(“wpcf7_submit”, “SE_379325_forward_cf7”, 10, 2); function SE_379325_forward_cf7($form, $result) { if( !class_exists(‘WPCF7_Submission’) ) return; $submission = WPCF7_Submission::get_instance(); if ($result[“status”] == “mail_sent”) { // proceed only if email has been sent $posted_data = $submission->get_posted_data(); save_posted_data($posted_data); } }; // your insert function: function save_posted_data($posted_data){ … Read more
since you are using a block editor, you should be able to select the text, and then set the color.
Yes you can, but not through “Quick edit”. You will need to “Edit” the comment (there is an “Edit” option under the comment text”). Then, in the upper right corner, you will see the date that the comment was entered. There is an “Edit” link under that date that lets you modify the date.
I got the undefined variable : user_id when i use get_user_meta This is because $user_id is empty and undefined, you need to give it a value, and that value needs to be the ID of a user. when i try put the above code below this line no error occur but my value $phone and … Read more
Looking at the login_header() function, it appears that you can use the login_message filter. add_filter( ‘login_message’, ‘wpse386695_change_message’ ); function wpse386695_change_message( $message ) { $message = str_replace( ‘Your password has been reset’, __( ‘The text you want to appear’, ‘plugin-text-domain’ ), $message ); return $message; } Update To replace the entire login_message string with your own … Read more
Based on the screenshot I assumed is var_dump of your $item The code should look like <?php $item = get_post_meta($post->ID, ‘occupationalCategory’, false); ?> <?php print_r( $item[‘occupationalCategory’][0] ); ?>; <?php print_r( $item[‘occupationalCategory’][1] ); ?> $item contains array, with a element which key is ‘occupationalCategory’, this element points to other array with two elements