This file contains 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 | |
add_filter( | |
'rcp_payment_gateways', | |
function( $gateways ) { | |
$order = [ | |
'pronamic_pay_credit_card' => 0, | |
'pronamic_pay_direct_debit' => 1, | |
]; |
This file contains 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
<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: {}, |
This file contains 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
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' |
This file contains 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 | |
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' ), |
This file contains 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 | |
/** | |
* 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'; |
This file contains 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 | |
define( 'WP_USE_THEMES', false ); | |
require '../wp-blog-header.php'; | |
$args = array( | |
'post_type' => 'pronamic_pay_subscr', | |
'nopaging' => true, | |
'orderby' => 'post_date', |
This file contains 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
grep --recursive --include="*.php" --exclude-dir={bower_components,deploy,node_modules,vendor,wordpress,wp-content} --ignore-case "apply_filters" . | |
grep --recursive --include="*.php" --exclude-dir={bower_components,deploy,node_modules,vendor,wordpress,wp-content} --ignore-case "do_action" . |
This file contains 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 | |
$vacancy_appetizer = ''; | |
$xml_string = \simplexml_load_string( \get_post_meta( \get_the_ID(), '_easycruit_vacancy_xml', true ) ); | |
if ( ! empty( $xml_string ) ) { | |
$vacancy_appetizer = \strval( $xml_string->Versions->Version->Appetizer ); | |
} |
This file contains 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
SELECT | |
company.name, | |
company_subscriptions.number_support_subbscriptions, | |
company_users.number_company_users | |
FROM | |
orbis_companies AS company | |
LEFT JOIN | |
( | |
SELECT | |
subscription.company_id, |
This file contains 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
SELECT | |
company.id AS company_id, | |
company.name AS company_name, | |
subscription.id AS subscription_id, | |
subscription.name AS subscription_name, | |
product.id AS product_id, | |
product.name AS product_name, | |
product.time_per_year, | |
SUM( timesheet.number_seconds ) AS registered_time, | |
100 / product.time_per_year * SUM( timesheet.number_seconds ) AS time_percentage, |
NewerOlder