Allow SVG Files Upload (copy) (copy) (copy)

/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading

Allow SVG Files Upload (copy) (copy) (copy)

/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading

Allow SVG Files Upload (copy) (copy)

/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading

Allow SVG Files Upload (copy) (copy)

/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading

Allow SVG Files Upload (copy)

/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading

[ 🟣 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

[ 🟣 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: Free-Views-Used Counter

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