// Código PHP echo “Entrada a Conexión de la BD\n”; // Database hostname define(‘DBHOST’, ‘localhost:3306’); // Database username define(‘DB_USER’, ‘wp_j4cbx’); // Database password define(‘DB_PASSWORD’, ‘uDFmf0E~?a2YgVj0’); // Nombre de la BD define( ‘DB_NAME’, ‘wp_n5p5f’); $conexion = mysqli_connect(DBHOST, DB_USER, DB_PASSWORD, DB_NAME); echo…Continue reading
/** * Ensure Customer Subscriptions are available in the payment confirmation data. */ add_filter( ‘simpay_payment_confirmation_data’, function( $payment_confirmation_data ) { $subscriptions = \SimplePay\Core\API\Subscriptions\all( array( ‘customer’ => $payment_confirmation_data[‘customer’]->id, ‘limit’ => 1, ‘status’ => ‘all’, ‘expand’ => array( ‘data.latest_invoice’, ‘data.latest_invoice.payment_intent’, ), ), $payment_confirmation_data[‘form’]->get_api_request_args()…Continue reading
/** * Start Remove Autofill Checkout **/ add_filter(‘woocommerce_checkout_get_value’, ‘prefix_return_empty_checkout’, 10, 2); function prefix_return_empty_checkout($value, $key) { // List of fields to clear $fields_to_clear = array( ‘billing_first_name’, ‘billing_last_name’, ‘billing_company’, ‘billing_country’, ‘billing_address_1’, ‘billing_address_2’, ‘billing_city’, ‘billing_state’, ‘billing_postcode’, ‘billing_phone’, ‘billing_email’, ‘shipping_first_name’, ‘shipping_last_name’, ‘shipping_company’, ‘shipping_country’, ‘shipping_address_1’,…Continue reading
function custom_admin_css_for_posts_list() { global $pagenow; // Check if we are on the posts listing page if ($pagenow == ‘edit.php’ && (empty($_GET[‘post_type’]) || $_GET[‘post_type’] == ‘post’)) { wp_register_style(‘custom_wp_admin_css’, false); wp_enqueue_style(‘custom_wp_admin_css’); $custom_css = ” #title { width: 400px !important; /* Adjust the…Continue reading
add_action( ‘elementor/query/vehicles_tools_query’, function( $query ) { // Get the term IDs for ‘vehicles’ and ‘tools’ categories by their slugs $term_ids = get_terms([ ‘taxonomy’ => ‘category’, ‘slug’ => [‘vehicles’, ‘tools’], ‘fields’ => ‘ids’, ‘hide_empty’ => true, ]); if ( !empty($term_ids) &&…Continue reading
add_action( ‘elementor/query/custom_exclude_vehicle_tool_subcats’, function ( $query ) { // Find the term IDs for ‘vehicles’ and ‘tools’ categories. $parent_categories = get_terms([ ‘taxonomy’ => ‘category’, ‘slug’ => [‘vehicles’, ‘tools’], ‘fields’ => ‘ids’, ]); $excluded_subcategories = []; if ( !is_wp_error( $parent_categories ) )…Continue reading
// Código PHP echo “Se ejecutó el SEND\n”; // Database hostname define( ‘DBHOST’, ‘localhost:3306’ ); // Database username define( ‘DB_USER’, ‘wp_j4cbx’ ); // Database password define( ‘DB_PASSWORD’, ‘uDFmf0E~?a2YgVj0’ ); // Nombre de la BD define( ‘DB_NAME’, ‘wp_n5p5f’ ); $conexion =…Continue reading
// Código PHP echo “Se ejecutó el SEND\n”; // Database hostname define( ‘DBHOST’, ‘localhost:3306’ ); // Database username define( ‘DB_USER’, ‘wp_j4cbx’ ); // Database password define( ‘DB_PASSWORD’, ‘uDFmf0E~?a2YgVj0’ ); // Nombre de la BD define( ‘DB_NAME’, ‘wp_n5p5f’ ); $conexion =…Continue reading