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";…

Allow Subscriptions Product on BOGO and Add Product Search Field

add_filter( 'acfw_product_search_allowed_types' , 'acfw_search_add_support_for_subscription_products' ); function acfw_search_add_support_for_subscription_products( $product_types ) { $product_types[] = 'subscription'; $product_types[] = 'variable-subscription';…

Restrict Dashboard Summary Widget

Prevent specific users (by user ID) from seeing the Easy Digital Downloads Sales Summary widget.

Non-required Card State

Makes the cart state a non-required field when present

Change label of CSV header, and removing others(Export Totals to CSV)

This snippet will change the label of CSV header, and remove the others(Export Totals to CSV)

Remove Post Title from Yoast Breadcrumb

/* Remove Post Title from Yoast Breadcrumb */ add_filter('wpseo_breadcrumb_single_link', 'remove_breadcrumb_title' ); function remove_breadcrumb_title( $link_output) { if(strpos(…

Change Method Label

add_filter( 'woocommerce_cart_shipping_method_full_label', 'wcv_override_vendor_shipping_label', 10, 2 ); function wcv_override_vendor_shipping_label( $label, $method ){ $label = 'Flat-rate'; // cost;…

Override the commission calculation priority order

/** * Given the provided list of vendor_ids in the vendors array, override the commission to…

test

echo 'test';

Combined Date – Time Format (Do something with the Local Start Time) | Display Eventbrite Events

The combined date / time format appears in several layouts and typically looks like 12/02/2019, 10:00…

Trigger a Scheduled Export via a WordPress Action

function custom_trigger_scheduled_export_url() { $secret_key = ( isset( $_GET['secret_key'] ) ? sanitize_text_field( $_GET['secret_key'] ) : false );…

<10
1 63 64 65 66 67 125