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 | |
# make executable: chmod +x file | |
echo -e "\033[7m INSTALL XCODE DEVELOPER TOOLS \033[27m" | |
xcode-select --install | |
echo -e "\033[7m HOMEBREW - INSTALL \033[27m" | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
echo -e "\033[7m HOMEBREW - DOCTOR \033[27m" |
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 | |
// Add below code to functions.php of your WordPress theme. | |
/** | |
* Sync stock with WooCommerce Stock Synchronization after WP All Import product update. | |
* | |
* @see https://www.pronamic.eu/plugins/woocommerce-stock-synchronization/ | |
*/ | |
function wcss_pmxi_stock_update( $post_id ) { | |
if ( ! is_callable( 'wc_get_product' ) ) { |
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
/** | |
* Link to WooCommerce tabs from anywhere on the page. | |
* | |
* Example usage: | |
* <a href="#wc-tab-description">Description</a> | |
* <a href="#wc-tab-reviews">Reviews</a> | |
*/ | |
$( document ).on( 'click', 'a[href^="#wc-tab"]', function( e ) { | |
if ( e.preventDefault ) { | |
e.preventDefault(); |
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 | |
/** | |
* Gravity Forms - Update field in entry with IBAN / account number from Pronamic Pay payment. | |
* | |
* @link https://github.com/pronamic/wp-pronamic-pay-gravityforms/blob/2200b1e0d275f3207326e3fcbb925a5c2b16bc1d/src/Extension.php#L1057-L1067 | |
* | |
* @param array $entry Gravity Forms entry. | |
* @param \Pronamic\WordPress\Pay\Extensions\GravityForms\PayFeed $feed Payment feed. | |
*/ |
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
/* | |
* WooCommerce Subscriptions - Skip order status 'On hold'. | |
*/ | |
add_filter( 'pronamic_payment_status_update_woocommerce_unknown_to_open', 'pronamic_pay_wcs_skip_on_hold', 10, 2 ); | |
function pronamic_pay_wcs_skip_on_hold( $payment, $can_redirect ) { | |
if ( 'woocommerce' !== $payment->get_source() ) { | |
return; | |
} |
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 | |
/** | |
* Pronamic Pay custom subscription cancel redirect URL. | |
*/ | |
add_action( 'pronamic_subscription_status_update_gravityformsideal', 'pronamic_pay_subscription_cancel_redirect_url', 10, 1 ); | |
function pronamic_pay_subscription_cancel_redirect_url( $subscription ) { | |
$redirect_url = home_url(); |
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 | |
// Add below code to functions.php of your WordPress theme. | |
/** | |
* Pronamic Pay status update notice. | |
* | |
* @param Payment $payment The payment. | |
* @param bool $can_redirect Whether or not to redirect. | |
* @param string $old_status Old paymet status. | |
* @param string $new_status New payment status. |
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 | |
/** | |
* Pronamic Pay privacy erasure by email address. | |
*/ | |
$emails = array(); | |
$privacy_erasers = pronamic_pay_plugin()->privacy_manager->register_erasers( array() ); | |
foreach ( $emails as $email ) { | |
foreach ( $privacy_erasers as $eraser ) { |
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 | |
/** | |
* Set Yoast SEO canonical URL meta for given post types and taxonomies | |
* to current link and perform given URL replacements. | |
* | |
* To run, set query variable: `/wp-admin/?pronamic_set_canonical=true`. | |
* | |
* @return void | |
*/ |
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 | |
// Add below code to functions.php of your WordPress theme. | |
/** | |
* Pronamic Pay status update process Buckaroo parameter. | |
* | |
* @param Payment $payment The payment. | |
* @param bool $can_redirect Whether or not to redirect. | |
* @param string $old_status Old paymet status. | |
* @param string $new_status New payment status. |
OlderNewer