// ACF custom variables $knowsabout = get_field( ‘author_knowsabout’, ‘user_’.get_the_author_meta( ‘ID’ ) ); $knowsabout2 = get_field( ‘author_knowsabout_2’, ‘user_’.get_the_author_meta( ‘ID’ ) ); $knowsabout3 = get_field( ‘author_knowsabout_3’, ‘user_’.get_the_author_meta( ‘ID’ ) ); $knowsabout4 = get_field( ‘author_knowsabout_4’, ‘user_’.get_the_author_meta( ‘ID’ ) ); $knowsabout5 = get_field( ‘author_knowsabout_5’,…Continue reading
function ele_disable_page_title( $return ) { return false; } add_filter( ‘hello_elementor_page_title’, ‘ele_disable_page_title’ );Continue reading
/* * Loads on Elementor’s frontend editor * Added by kishorchand * Use child theme’s function.php or code snippets plugin for better code management. */ function remove_elementor_nag() { ?>Continue reading
/* * Hide Elementor image optimization ads when choosing the post’s featured image on the backend * UPDATE: 20/06/24 Hide Elementor image optimization ads on Media Library, if closing the “x” is not enough. */ function hide_elementor_nag_admin() { ?>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
// Código para obtener y mostrar los datos de Google Sheets $API = ‘AIzaSyC-Q_KOO2J2C6r3E8ehvcnIhrcH4BHhJMI’; $google_spreadsheet_ID = ‘1SOBpT1j_xkQxC2ESBNBQVsuh2O4ODl20F5k42SPnjvE’; $api_key = esc_attr($API); // Rango de celdas de la hoja de cálculo $location = ‘BANNER!A2:B’; // Asegúrate de ajustar el rango según tu…Continue reading
// Incluir el autoload de Composer desde la raíz de tu instalación de WordPress require_once ABSPATH . ‘vendor/autoload.php’; use Google\Client; use Google\Service\Sheets; // Configurar la cuenta de servicio $client = new Client(); $client->setApplicationName(‘Club Aguilas App’); $client->setScopes([Sheets::SPREADSHEETS]); $client->setAuthConfig(ABSPATH . ‘clubaguilas-google.json’); //…Continue reading
// Incluir el autoload de Composer desde la raíz de tu instalación de WordPress require_once ABSPATH . ‘vendor/autoload.php’; use Google\Client; use Google\Service\Sheets; // Configurar la cuenta de servicio $client = new Client(); $client->setApplicationName(‘Club Aguilas App’); $client->setScopes([Sheets::SPREADSHEETS]); $client->setAuthConfig(ABSPATH . ‘clubaguilas-google.json’); //…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