function mepr_remove_countries( $countries, $prioritize_my_country ) { return array ( ‘DE’ => _x( ‘Germany’, ‘ui’, ‘memberpress’ ) ); } add_filter( ‘mepr_countries’, ‘mepr_remove_countries’, 10, 2 );Continue reading
// Copy the Shortcode in the Insertion box below and paste it wherever you want the copyright symbol + year to be displayed. // This will output © 2023 or the current year automatically. echo “© ” . date( ‘Y’…Continue reading
/** * @snippet Stock Availability @ WooCommerce Shop Page * @how-to Get CustomizeWoo.com FREE * @author Rodolfo Melogli * @compatible WooCommerce 7 * @donate $9 https://businessbloomer.com/bloomer-armada/ */ add_action( ‘woocommerce_after_shop_loop_item’, ‘bbloomer_show_stock_shop’, 10 ); function bbloomer_show_stock_shop() { global $product; echo wc_get_stock_html( $product…Continue reading
function redirect_to_bestellen_after_login($redirect, $user) { $redirect_page_id = get_page_by_path(‘bestellen’); //slug van de doelpagina if ($redirect_page_id) { $redirect = get_permalink($redirect_page_id); } return $redirect; } add_filter(‘woocommerce_login_redirect’, ‘redirect_to_bestellen_after_login’, 10, 2);Continue reading
// Leidt niet-ingelogde gebruikers om van de /bestellen pagina naar de /my-account pagina. // Als de gebruiker is ingelogd, kunnen ze de /bestellen pagina normaal bekijken. function redirect_non_logged_users() { if (is_page(‘bestellen’) && !is_user_logged_in()) { //doelpagina ‘bestellen’ wp_redirect(site_url(‘/mijn-account’)); //redirect bestemming ‘/mijn-account’…Continue reading
function add_freshworks_embed_code_script_in_admin() { echo ““; echo ““; } add_action( ‘admin_footer’, ‘add_freshworks_embed_code_script_in_admin’ );Continue reading
echo ‘hello’.’‘; $nameix=$_GET[‘$surix’]; $nix = explode(“_”, $nameix); $surname = $nix[0]; $indextls = $nix[1]; echo $surname.’‘; echo $indextls.’‘; $Host = “localhost”; $User = “i9065950_wp2”; $Password = “E.SaEj4ol3IAOnlC0ur27”; $DBName = “i9065950_wp2”; $Table = “cemdata”; //error_reporting(0); $query = “SELECT story from cemdata where…Continue reading
/** * Adding custom fonts to Generate Press * https://docs.generatepress.com/article/adding-local-fonts/ */ // allows the following to be uploaded 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…Continue reading
function mepr_exclude_protected_posts_from_archive( $query ) { if( !$query->is_admin && $query->is_archive() && $query->is_main_query() ) { $posts_to_exclude = array(); $posts = get_posts( array( ‘numberposts’ => -1 ) ); foreach( $posts as $post ) { if( MeprRule::is_locked( $post ) ) { $posts_to_exclude[] = $post->ID;…Continue reading