Divi: how to hide/show specific menu according current page?

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 );

Saving contact form 7 data into custom Table

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

Is it possible to make wordpress LMS

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.

Change Successful password reset message

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

How to print Array values of custom Fields Meta?

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