This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// https://wordpress.org/plugins/gdpr-cookie-compliance/ | |
/* disable fbp cookie on gdpr_cookie plugin */ | |
add_filter('facebook_for_woocommerce_integration_pixel_enabled', 'gdpr_cookie_facebook_wc', 20); | |
function gdpr_cookie_facebook_wc() | |
{ | |
$enable_fb_wc = true; | |
if (function_exists('gdpr_cookie_is_accepted')) : | |
$enable_fb_wc = gdpr_cookie_is_accepted('thirdparty'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" lang="es" /> | |
<style type="text/css" media="screen"> | |
body { | |
margin: 0; | |
padding: 0; | |
background-color: #ffffff; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Preserve Page and Taxonomy Hierarchy on Edit Menus Screen | |
Version: 0.1 | |
Plugin URI: https://core.trac.wordpress.org/ticket/18282 | |
Description: Disables paging for hierarchical post types and taxonomies on Edit Menus screen to preserve proper hierarchy in meta boxes. | |
Author: Sergey Biryukov | |
Author URI: http://profiles.wordpress.org/sergeybiryukov/ | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Default options | |
LOCALE="es_ES" | |
DB_HOST='localhost:3306' | |
printf "Name of the project? eg My Project: " | |
read PROJECT_NAME | |
printf "Slug of the project? eg myproject: " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Only used for example purposes, for also incluidng VAT validation and calculation | |
* I recommend using the plugin https://wordpress.org/plugins/wc-apg-nifcifnie-field/ | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; // Exit if accessed directly. | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Change lesson tooltip | |
* https://themespirit.com/kb/learndash-changing-tooltips/ | |
*/ | |
add_filter( 'learndash_lesson_row_atts', function( $data_tooltip, $lesson_id, $course_id, $user_id ) { | |
if ( ! empty( $data_tooltip ) ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Use this set of functions in functions.php with WooCommerce and SendCloud | |
* SendCloud plugin adds a note when tracking number is set | |
* | |
* If an order is found with the string 'SendCloud shipment' and has a URL, | |
* This will add the link to the tracking system to an order under my account > orders | |
* | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// | |
// A very simple PHP example that sends a HTTP POST to a remote site | |
// Put this file in your project root directory and execute in browser | |
// If you see an error, probably the Loopback on Site Health will be also failing, solve this and test again. | |
// | |
$ch = curl_init(); |