Using Date Picker Localization
/** * Apply the date picker locale strings. * * @link https://wpforms.com/developers/localize-the-date-picker-strings/ */ function wpf_dev_datepicker_apply_locale() { ?>Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
/** * Apply the date picker locale strings. * * @link https://wpforms.com/developers/localize-the-date-picker-strings/ */ function wpf_dev_datepicker_apply_locale() { ?>Continue reading
/** * Load the date picker locale strings. * * @link https://wpforms.com/developers/localize-the-date-picker-strings/ */ function wpf_dev_datepicker_locale( $forms ) { if ( true === wpforms_has_field_type( ‘date-time’, $forms, true )){ wp_enqueue_script( ‘wpforms-datepicker-locale’, ‘https://npmcdn.com/[email protected]/dist/l10n/es.js’, array( ‘wpforms-flatpickr’ ), null, true ); } } add_action( ‘wpforms_frontend_js’,…Continue reading
/** * Comprehensive UpdraftPlus Email Notification Disabler * Add this code to your theme’s functions.php or WPCode * By: Empathy First Media */ // Master switches and initialization prevention add_filter(‘updraftplus_disable_all_mail_init’, ‘__return_true’); // Master switch to disable email initialization add_filter(‘updraftplus_email’, ‘__return_false’);…Continue reading
// Disable /users rest routes add_filter(‘rest_endpoints’, function( $endpoints ) { if ( isset( $endpoints[‘/wp/v2/users’] ) ) { unset( $endpoints[‘/wp/v2/users’] ); } if ( isset( $endpoints[‘/wp/v2/users/(?P[\d]+)’] ) ) { unset( $endpoints[‘/wp/v2/users/(?P[\d]+)’] ); } return $endpoints; });Continue reading
if (function_exists(‘rank_math_the_breadcrumbs’)) rank_math_the_breadcrumbs();Continue reading
add_shortcode(‘mostrar_pagos_jugador’, ‘mostrar_pagos_jugador_func’); function setup_pagos_google_client() { // Configura el cliente de Google Sheets para Pagos $client = new Google_Client(); $client->setApplicationName(‘Club Aguilas – Pagos’); $client->setScopes(Google_Service_Sheets::SPREADSHEETS_READONLY); $client->setAuthConfig(ABSPATH . ‘clubaguilas-google.json’); // Archivo de credenciales de Club Aguilas $service = new Google_Service_Sheets($client); return $service; }…Continue reading
require_once ABSPATH . ‘vendor/autoload.php’; use Google\Client as ConfirmacionRegistroClient; use Google\Service\Sheets as ConfirmacionRegistroSheets; if (!function_exists(‘setup_confirmacion_registro’)) { function setup_confirmacion_registro() { $client = new ConfirmacionRegistroClient(); $client->setApplicationName(‘Club Aguilas App’); $client->setScopes([ConfirmacionRegistroSheets::SPREADSHEETS]); $client->setAuthConfig(ABSPATH . ‘clubaguilas-google.json’); return new ConfirmacionRegistroSheets($client); } } function get_confirmacion_registro($service, $spreadsheetId, $sheetName, $curp) {…Continue reading
add_action(‘wpforms_process_complete’, ‘crear_usuarios_papa_mama’, 10, 4); function crear_usuarios_papa_mama($fields, $entry, $form_data, $entry_id) { // Identificadores de los formularios $form_id_flag = 639; $form_id_equipado = 690; $form_id_porrista = 692; // Verificar el formulario enviado if (in_array($form_data[‘id’], [$form_id_flag, $form_id_equipado, $form_id_porrista])) { // Datos del usuario Papá…Continue reading
require_once ABSPATH . ‘vendor/autoload.php’; use Google\Client as GoogleClient; use Google\Service\Sheets as GoogleSheets; if (!function_exists(‘setup_google_client’)) { function setup_google_client() { $client = new GoogleClient(); $client->setApplicationName(‘Club Aguilas App’); $client->setScopes([GoogleSheets::SPREADSHEETS]); $client->setAuthConfig(ABSPATH . ‘clubaguilas-google.json’); return new GoogleSheets($client); // Instancia del servicio de Google Sheets }…Continue reading