Search results for: admin

Ensure Webfont is Loaded (Elementor)

add_filter( 'elementor_pro/custom_fonts/font_display', function( $current_value, $font_family, $data ) { return 'swap'; }, 10, 3 );

Ensure Webfont is Loaded (non-Elementor)

function custom_font_display( $current_value, $font_family, $data ) { return 'swap'; } add_filter( 'font_display', 'custom_font_display', 10, 3 );

Remove Google Fonts (Elementor)

add_filter( 'elementor/frontend/print_google_fonts', '__return_false' );

Remove Google Fonts (non-Elementor)

function disable_google_fonts() { return false; } add_filter( 'print_google_fonts', 'disable_google_fonts' );

Custom Countries

Illustrates how to add a custom list of countries This list will be used anywhere EDD…

REST API Shopping Cart Endpoint for EDD

Adds a REST API endpoint that returns the current user's shopping cart.

Remove Decimals

Removes decimal places from all prices

Show Terms By Default

Show the terms of agreement open on the checkout page by default

Allow SVG Files Upload (copy)

Add support for SVG files to be uploaded in WordPress media.

Untitled Snippet

https://www.highrevenuegate.com/vtih3qtws?key=9fcf513fba43e6344e324bc00d8881b4

Untitled Snippet

https://www.highrevenuegate.com/vtih3qtws?key=9fcf513fba43e6344e324bc00d8881b4

Change user role for buyers

This is useful if, for example, you want buyers to be able to access dedicated content…

Format USD Currency

Displays $ as USD This will make $10 be displayed as 10 USD To set this…

1 25 26 27 28 29 114