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, |
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
<?php | |
/** | |
* Plugin Name: Pronamic Pay - Custom Mollie metadata | |
* Plugin URI: https://gist.github.com/remcotolsma/277254ae239641c36b91ec8f8fe0da92 | |
* Description: Custom plugin specific for Pronamic.nl/eu website to add Mollie metadata. | |
* | |
* Version: 1.0.0 | |
* Requires at least: 4.7 | |
* | |
* Author: Pronamic |
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( 'pronamic_pay_mollie_payment_meta_data', function( $meta_data, $payment ) { | |
$data = array(); | |
$customer = $payment->get_customer(); | |
if ( null !== $customer ) { | |
$vat_number = $customer->get_vat_number(); |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>SVG test on IE11</title> | |
<meta name="description" content="SVG test on IE11."> | |
<meta name="author" content="Pronamic"> |
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, | |
post.post_title, | |
post.post_date, | |
post.post_status, | |
MAX( IF( meta.meta_key = "_pronamic_payment_description", meta.meta_value, NULL ) ) AS payment_description, | |
MAX( IF( meta.meta_key = "_pronamic_payment_amount", meta.meta_value, NULL ) ) AS payment_amount, | |
MAX( IF( meta.meta_key = '_pronamic_payment_currency', meta.meta_value, NULL ) ) AS payment_currency, | |
MAX( IF( meta.meta_key = '_pronamic_payment_config_id', meta.meta_value, NULL ) ) AS payment_config_id, | |
MAX( IF( meta.meta_key = '_pronamic_payment_status', meta.meta_value, NULL ) ) AS payment_status, |
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 | |
/** | |
* Custom. | |
*/ | |
\add_action( | |
'plugins_loaded', | |
function() { | |
/** | |
* Check for Gravity Forms API. |
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'; | |
$query = new WP_Query( | |
array( | |
'post_type' => 'provider', | |
'nopaging' => true, |
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 | |
entry.id AS entry_id, | |
entry.date_created AS entry_created_on, | |
entry.form_id AS form_id, | |
form.title AS form_title, | |
user.display_name AS user_display_name, | |
emtry_meta_km.meta_value AS number_kilometers, | |
emtry_meta_office_id.meta_value AS office_id, | |
emtry_meta_date.meta_value AS period, | |
office.code AS office_code, |