WordPress development environment on Mac with Brew, Nginx, PHP 7, PHP-FPM, MariaDB, phpMyAdmin and more
brew tap homebrew/dupes
brew tap homebrew/versions
brew tap homebrew/homebrew-php
<?php | |
add_filter( | |
'rcp_payment_gateways', | |
function( $gateways ) { | |
$order = [ | |
'pronamic_pay_credit_card' => 0, | |
'pronamic_pay_direct_debit' => 1, | |
]; |
<link rel="preconnect" href="https://tags.crwdcntrl.net"> | |
<link rel="preconnect" href="https://bcp.crwdcntrl.net"> | |
<link rel="dns-prefetch" href="https://tags.crwdcntrl.net"> | |
<link rel="dns-prefetch" href="https://bcp.crwdcntrl.net"> | |
<script> | |
! function() { | |
var lotameClientId = '17301'; | |
var lotameTagInput = { | |
data: {}, |
SELECT | |
post.ID AS post_id, | |
post.post_date, | |
post.post_content->>'$.source.key' AS source_key, | |
-- The '200' value represents the new amount. | |
JSON_REPLACE( post.post_content, '$.phases[last].amount.value', '200' ) AS post_content | |
FROM | |
wp_posts AS post | |
WHERE | |
post.post_type = 'pronamic_pay_subscr' |
<script type="text/javascript"> | |
jQuery( document ).ready( function( $ ) { | |
var ms_one_day = 1000 * 60 * 60 * 24; | |
var form_id = '1'; | |
var date_format = 'dd-mm-yy'; | |
var field_date_start = $( '#input_' + form_id + '_1' ); | |
var field_date_end = $( '#input_' + form_id + '_2' ); |
<?php | |
add_action( | |
'woocommerce_after_order_object_save', | |
function( $order ) { | |
$data = [ | |
$order->get_meta( 'meta 1' ), | |
$order->get_meta( 'meta 2' ), | |
$order->get_meta( 'meta 3' ), | |
$order->get_meta( 'meta 4' ), |
<?php | |
/** | |
* Hooks into the "gform_validation" filter to test whether or not a new lead is a duplicate of another lead | |
* based upon their fields. | |
* | |
* @param mixed $validation_result | |
* | |
* @return mixed $validation_result | |
*/ |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>FITsociety</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css"> |
<?php | |
/** | |
* Formidable Forms. | |
* | |
* @link https://github.com/Strategy11/formidable-forms/blob/v5.0.01/classes/controllers/FrmEntriesController.php#L31 | |
* @link https://github.com/Strategy11/formidable-forms/blob/v5.0.01/classes/helpers/FrmEntriesListHelper.php#L289-L293 | |
*/ | |
$screen = 'formidable_page_formidable-entries'; |
<?php | |
define( 'WP_USE_THEMES', false ); | |
require '../wp-blog-header.php'; | |
$args = array( | |
'post_type' => 'pronamic_pay_subscr', | |
'nopaging' => true, | |
'orderby' => 'post_date', |