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_filter( 'bp_restrict_pmpro_url_redirect', 'bpr_change_bp_restrict_url' ); | |
function bpr_change_bp_restrict_url( $url ) { | |
return 'https://mysite.com/login'; | |
} |
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 | |
/* | |
* This overrides BuddyBuilder template for BuddyPress pages with Elementor canvas template. | |
*/ | |
add_filter( 'buddy_builder/page_template ', function ( $template ) { | |
if ( ! class_exists( '\Elementor\Plugin' ) ) { | |
return $template; | |
} | |
$page_templates_module = \Elementor\Plugin::$instance->modules_manager->get_modules( 'page-templates' ); |
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
function mandatory_coupon_code() { | |
$applied_coupons = WC()->cart->get_applied_coupons(); | |
if ( empty ( $applied_coupons ) ) { | |
// Not found: display an error notice | |
wc_add_notice( __( 'Add coupon before checkout.', 'woocommerce' ), 'error' ); | |
} | |
} | |
add_action( 'woocommerce_check_cart_items', 'mandatory_coupon_code', 10, 0 ); |
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 | |
// Redirects directly after launch. | |
add_filter('dollie/launch_site/immediate_redirect', function ($redirect) { | |
$redirect = 'https://example.com/dashboard'; | |
return $redirect; | |
}); | |
// Redirects after the site has finished to launch. Happens on the site page when is loading. | |
add_filter('dollie/launch_site/redirect', function ($redirect) { | |
$redirect = 'https://example.com/dashboard'; |
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
# install base dependencies | |
sudo apt-get install libwebp-dev libde265-dev | |
cd /usr/src | |
# install library for reading heif/heic files | |
wget https://github.com/strukturag/libheif/releases/download/v1.14.0/libheif-1.14.0.tar.gz | |
cd libheif-1.14.0 | |
./autogen.sh | |
./configure |
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 | |
remove_action( 'woocommerce_thankyou', [ \Dollie\Core\Modules\Subscription\Plugin\WooCommerce::instance(), 'redirect_to_blueprint' ] ); |
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_filter('dollie/site/login_url/location', function($location, $container) { | |
return 'wp-admin/'; | |
}, 10, 2); |
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: Dollie Site Helper | |
Description: A helper plugin to launch Dollie sites. | |
Version: 1.0.0 | |
Author: getdollie.com | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; |
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
blueprint: | |
name: Device Control with Mode Helper and Custom Actions | |
description: Control actions using any device's triggers with OFF/ON/AUTO modes. | |
domain: automation | |
input: | |
motion_occupied_trigger: | |
name: Occupied Trigger | |
description: Select the trigger for when motion/occupancy is detected | |
selector: | |
trigger: {} |
OlderNewer