[ 🟣 WC ] [Pagina produto ] [ Desktop] [ 1 ]

// Nome do código: display_travel_package_custom_fields_desktop function display_travel_package_custom_fields_desktop($atts) { global $post; // Enqueue Swiper.js CSS and JS wp_enqueue_style(‘swiper-css’, ‘https://unpkg.com/swiper/swiper-bundle.min.css’); wp_enqueue_script(‘swiper-js’, ‘https://unpkg.com/swiper/swiper-bundle.min.js’, array(‘jquery’), null, true); // Enqueue Font Awesome for icons wp_enqueue_style(‘font-awesome’, ‘https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css’); // Enqueue custom CSS for styling wp_enqueue_style(‘custom-style’, get_stylesheet_uri()); //…Continue reading

MemberPress: Disable the Default WordPress Password Reset Link E-Mail

function mepr_disable_password_reset_email( $recipients, $subject, $message, $headers ) { $set_password_notification_subject = MeprHooks::apply_filters( ‘mepr_set_new_password_title’, sprintf( __( “[%s] Set Your New Password”, ‘memberpress’ ), MeprUtils::blogname() ) ); if ( $subject == $set_password_notification_subject ) { $recipients = array(); } return $recipients; } add_filter( ‘mepr-wp-mail-recipients’,…Continue reading

Removing Otter Pro upsell notification

$notifications = get_option( ‘themeisle_blocks_settings_notifications’, array() ); if ( ! isset( $notifications[‘dashboard_upsell’] ) || $notifications[‘dashboard_upsell’] !== true ) { $notifications[‘dashboard_upsell’] = true; update_option( ‘themeisle_blocks_settings_notifications’, $notifications ); }Continue reading

Removing Otter Pro upsell notification!

$notifications = get_option( ‘themeisle_blocks_settings_notifications’, array() ); if ( ! isset( $notifications[‘dashboard_upsell’] ) || $notifications[‘dashboard_upsell’] !== true ) { $notifications[‘dashboard_upsell’] = true; update_option( ‘themeisle_blocks_settings_notifications’, $notifications ); }Continue reading

Upload font files to media library (copy)

add_filter( ‘upload_mimes’, function( $mimes ) { $mimes[‘woff’] = ‘application/x-font-woff’; $mimes[‘woff2’] = ‘application/x-font-woff2’; $mimes[‘ttf’] = ‘application/x-font-ttf’; $mimes[‘svg’] = ‘image/svg+xml’; $mimes[‘eot’] = ‘application/vnd.ms-fontobject’; return $mimes; } );Continue reading

Add Shortcodes to the List of Conflicting Shortcodes

add_filter( ‘aioseo_conflicting_shortcodes’, ‘aioseo_filter_conflicting_shortcodes’ ); function aioseo_filter_conflicting_shortcodes( $conflictingShortcodes ) { $conflictingShortcodes = array_merge( $conflictingShortcodes, [ ‘WISDM Group Registration’ => ‘[wdm_group_users]’, ‘WISDM Quiz Reporting’ => ‘[wdm_quiz_statistics_details]’, ‘WISDM Course Review’ => ‘[rrf_course_review]’ ] ); return $conflictingShortcodes; }Continue reading

Disable Update Emails

// Disable auto-update email notifications add_filter(‘auto_core_update_send_email’, ‘disable_auto_update_emails’, 10, 4); function disable_auto_update_emails($send, $type, $core_update, $result) { if ( !empty($type) && $type == ‘success’ ) { return false; } return true; } // Disable plugin and theme update email notifications add_filter(‘auto_plugin_update_send_email’, ‘__return_false’);…Continue reading