// 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
// 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
/** * Sorting SDEK shipping methods by cost, from cheap to expensive * * @param array $rates Array of shipping methods * * @return array */ add_filter( ‘woocommerce_package_rates’, function( $rates ) { if( empty( $rates ) || ! is_array( $rates…Continue reading
function mepr_display_cookie() { $free_views = isset( $_COOKIE[‘mp3pi141592pw’]) ? base64_decode( $_COOKIE[‘mp3pi141592pw’] ) : false; if( $free_views !== false ) { echo ‘You used ‘ . $free_views . ‘ free views!’; } } add_action( ‘init’, ‘mepr_display_cookie’ );Continue reading
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
add_filter( ‘aioseo_thumbnail_size’, function( $imageSize ) { return ‘large’; } );Continue reading
$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
$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
$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