Remove required legend from Gravity Forms
add_filter( ‘gform_required_legend’, ‘__return_empty_string’ );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter( ‘gform_required_legend’, ‘__return_empty_string’ );Continue reading
add_filter( ‘recovery_mode_email’, function( $email ) { $email[‘to’] = ‘[email protected]’; return $email; } );Continue reading
function custom_canonical_link() { $canonical_url = esc_url(home_url(‘/default-link’)); echo ‘‘; echo ‘‘; } add_action(‘wp_head’, ‘custom_canonical_link’);Continue reading
require_once ‘vendor/autoload.php’; use League\Uri\Uri; // URL de ejemplo $urlOriginal = “https://aclaraciondigital.net/5854576289”; // Parsear la URL utilizando la biblioteca league/uri $parsedUrl = Uri::createFromString($urlOriginal); // Normalizar la URL $normalizedUrl = (string) $parsedUrl; // Mostrar la URL original y la URL normalizada echo…Continue reading
/** * Plugin Name: Mi Plugin de Prueba * Description: Este es un plugin de prueba para WPCode Snippet. * Version: 1.0 * Author: Tu Nombre */ // Agrega un shortcode para mostrar el mensaje. function mensaje_de_prueba_shortcode() { return ‘…Continue reading
i want a on off button that when press each other send logical true if press on and false when press off …i want this for local web page that control IoT thing with microcontroller that writted with c++ and…Continue reading
// disable gutenberg frontend styles @ https://m0n.co/15 function disable_gutenberg_wp_enqueue_scripts() { wp_dequeue_style(‘wp-block-library’); wp_dequeue_style(‘wp-block-library-theme’); wp_dequeue_style(‘global-styles’); wp_dequeue_style(‘classic-theme-styles’); } add_filter(‘wp_enqueue_scripts’, ‘disable_gutenberg_wp_enqueue_scripts’, 100);Continue reading
add_filter( ‘wpcode_get_snippets_for_location’, function ( $snippets, $location ) { if ( ‘site_wide_header’ !== $location ) { return $snippets; } foreach ( $snippets as $key => $snippet ) { if ( ! is_int( $snippet->id ) && false !== strpos( $snippet->id, ‘pixel_’ )…Continue reading