Skip to content

Instantly share code, notes, and snippets.

@pintoderian
pintoderian / functions.php
Created December 17, 2025 06:07 — forked from jessepearson/functions.php
Disables opening Terms and Conditions on WooCommerce Checkout page in an inline form and instead open in a new tab or window.
<?php // do not copy this line
/**
* Disables opening the Terms and Conditions page in an inline form on the Checkout page.
* The Terms and Conditions link will then open in a new tab/window.
*/
add_action( 'wp', function() {
remove_action( 'woocommerce_checkout_terms_and_conditions', 'wc_checkout_privacy_policy_text', 20 );
remove_action( 'woocommerce_checkout_terms_and_conditions', 'wc_terms_and_conditions_page_content', 30 );
} );
@pintoderian
pintoderian / odbc.php
Created February 17, 2020 16:26
Librería para trabajar con tablas de FOX
<?php
class odbc {
protected $database;
protected $table;
protected $path;
protected $size;
/**
* setPath
@pintoderian
pintoderian / Curl.php
Last active February 2, 2019 20:54
Librería Curl
<?php
class Curl{
public static function GetPage($obj){
$link = isset($obj['url'])?$obj['url']:NULL;
$useheader = isset($obj['showHeader'])?$obj['showHeader']:NULL;
$useragent = isset($obj['agent'])?$obj['agent']:NULL;
$referer = isset($obj['referer'])?$obj['referer']:NULL;
$custheader = isset($obj['requestHeaders'])?$obj['requestHeaders']:NULL;
$cookie = isset($obj['cookie'])?$obj['cookie']:NULL;
$encoding = isset($obj['encoding'])?$obj['encoding']:NULL;