Untitled Snippet

create custom snippet

Ai Ohashi
<10

Untitled Snippet

function youtube_dashboard() { $api_key = "AIzaSyBzzf22Vs5sMf1eoCuhN3-0Qtnj0EKu7Bk"; $channel_id = "102319916649-hmjdaecid7f96ql384nd80ie8mn13fjj.apps.googleusercontent.com"; // ganti channel kamu $url = "https://www.googleapis.com/youtube/v3/channels?part=snippet,statistics&id=$channel_id&key=$api_key";…

Hide payment icons for trials

Hides the payment icons on checkout when the item in the card is a free trial

WWQ - Allow quoting out-of-stock products

add_action( 'woocommerce_single_product_summary', 'wwq_show_quote_button_for_out_of_stock', 31 ); function wwq_show_quote_button_for_out_of_stock() { global $product; if ( ! $product instanceof WC_Product…

dd the "MSRP" or "MAP" label to the regular price for wholesale customers

/* WWPP - Add the "MSRP" or "MAP" label to the regular price for wholesale customers…

Custom Tab Order For Dashboard

// Add this to your themes functions.php to change the order, rearrage the lines. First line…

3 Dots for popup text in WordPress

With this snippet 3 highlighted dots appear when you create small items of text that you…

Current Year

function current_year_shortcode() { return date('Y'); } add_shortcode('year', 'current_year_shortcode');

Post term count

add_shortcode( 'term_count', function( $atts ) { $atts = shortcode_atts( array( 'taxonomy' => '', 'hide_empty' => 'false',…

<10

Card Layout for Speaker Pages

Replaces the default speaker page with a card design: a hero image, the role, contact links…

1 … 139 140 141 142 143 … 242