Disallow Store Credit When There Is an Active Coupon in the Cart

- When you apply coupon first, once the cart refreshes, the Store Credit field will be…

Opening booking resources editor in new tab

This snippet will open the booking resources editor in a new tab instead of opening it…

Override the commission calculation priority order

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

Fix 500 Internal Server Error

A .htaccess file is a key file in all PHP-based applications that controls your website’s configuration.…

Disable Gutenberg Editor (use Classic Editor)

add_filter('gutenberg_can_edit_post', '__return_false', 5); add_filter('use_block_editor_for_post', '__return_false', 5);

<10

How to Allow Upload SVG Files in WordPress Media Library Code | Function.php

This code is a set of WordPress filters designed to enable the upload of SVG (Scalable…

Set the ranges for Calendar & Calendar List (Combined) View | Display Eventbrite Events

The following code snippet filters the valid ranges for the next/prev keys of the calendar and…

Untitled Snippet

function obtener_sismos_recientes() { // URL de la API $url = 'https://ultimosismo.igp.gob.pe/ultimo-sismo/ajaxb/2024?_=1694788511856'; // Obtener los datos de…

WordPress Typography Enhancement: Preventing Widows in Conten

This code is a WordPress filter designed to prevent "widows" in typography within the content displayed…

WordPress Memory Exhausted

WordPress is written in PHP, which is a server-side programming language. Additionally, every website needs a…

Untitled Snippet

wp_enqueue_style( 'style', get_stylesheet_uri() ); .wp-block-latest-comments__comment-date { color: var(--wp--preset--color--primary); font-size: var(--wp--preset--font-size--small); } function myfirsttheme_setup() { /* *…

1 129 130 131 132 133 218