See also:
Service | Type | Storage | Limitations |
---|---|---|---|
Amazon DynamoDB | 25 GB | ||
Amazon RDS | |||
Azure SQL Database | MS SQL Server | ||
👉 Clever Cloud | PostgreSQL, MySQL, MongoDB, Redis | 256 MB (PostgreSQL) | Max 5 connections (PostgreSQL) |
See also:
Service | Type | Storage | Limitations |
---|---|---|---|
Amazon DynamoDB | 25 GB | ||
Amazon RDS | |||
Azure SQL Database | MS SQL Server | ||
👉 Clever Cloud | PostgreSQL, MySQL, MongoDB, Redis | 256 MB (PostgreSQL) | Max 5 connections (PostgreSQL) |
<?php | |
/** | |
* Remove variouse template parts in WooCommerce | |
*/ | |
add_filter( 'wc_get_template', function( $located, $template_name, $args, $template_path, $default_path ) { | |
$remove = [ | |
'sale-flash.php', | |
'meta.php', |
<?php | |
add_filter( | |
'hivepress/v1/forms/payout_request', | |
function( $form ) { | |
$form['fields']['details']['description'] = 'custom text here'; | |
return $form; | |
}, | |
1000 | |
); |
<?php | |
add_filter( | |
'hivepress/v1/forms/order_deliver', | |
function( $form ) { | |
$form['fields']['note']['description'] = 'custom text here'; | |
return $form; | |
}, | |
1000 | |
); |
/** | |
* Adjust myCRED Point Rewards | |
* Will move the points payout from when an order is "paid" to when | |
* an order is "completed". | |
* @version 1.0 | |
*/ | |
add_action( 'after_setup_theme', 'mycred_pro_adjust_woo_rewards', 110 ); | |
function mycred_pro_adjust_woo_rewards() { | |
remove_action( 'woocommerce_payment_complete', 'mycred_woo_payout_rewards' ); |
<?php | |
add_filter( | |
'hivepress/v1/models/listing', | |
function( $model ) { | |
$model['fields']['description']['editor'] = array( //'quicktags' => true, | |
'media_buttons' => false, //if false show image button instead | |
'toolbar1' => 'styleselect, bold, italic, underline, bullist, numlist, blockquote, link, image, wp_adv, quicklink, fullscreen,', | |
); | |
return $model; |
class WFACP_ReCaptcha_For_WC { | |
private $instance = null; | |
public function __construct() { | |
add_action( 'wfacp_template_load', [ $this, 'actions' ] ); | |
} | |
public function is_enable() { | |
return class_exists( 'I13_Woo_Recpatcha' ); | |
} |
<?php | |
/** | |
* Add reCaptcha to checkout form | |
* Note: Can't place within the payment part of the form, WooCommerce just won't show it, choose an appropriate action to add it to accordingly | |
* @param $checkout | |
*/ | |
function doublee_show_me_the_checkout_captcha($checkout) { | |
echo '<div class="g-recaptcha" data-sitekey="YOUR_KEY_HERE"></div>'; | |
} | |
add_action('woocommerce_checkout_order_review', 'doublee_show_me_the_checkout_captcha', 18); |
<?php | |
add_filter( | |
'hivepress/v1/forms/listing_submit/errors', | |
function( $errors, $form ) { | |
$listing = $form->get_model(); | |
if ( $listing && $listing->get_user__id() ) { | |
$listing_count = \HivePress\Models\Listing::query()->filter( | |
[ | |
'status__in' => [ 'publish', 'pending', 'draft' ], |