Dynamic Year Copyright Shortcode

// 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

Display stock status on category page

/** * @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

Freshdesk Support Widget

function add_freshworks_embed_code_script_in_admin() { echo ““; echo ““; } add_action( ‘admin_footer’, ‘add_freshworks_embed_code_script_in_admin’ );Continue reading

Get Story 833

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

Generate Press Custom Font

/** * 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

MemberPress: Hide Protected Posts on Archive Page

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