Auto Complete Virtual Orders – Not EFT

/** * Auto-complete orders that contain ONLY virtual items, * but ONLY after payment is confirmed. * EXCLUDES EFT / Direct Bank Transfer (bacs). */ add_action( “woocommerce_payment_complete”, “vg_autocomplete_virtual_orders_after_payment”, 20 ); function vg_autocomplete_virtual_orders_after_payment( $order_id ) { if ( ! $order_id )…Continue reading

reunik1

@ini_set( ‘upload_max_filesize’ , ‘128M’ ); @ini_set( ‘post_max_size’, ‘128M’); @ini_set( ‘memory_limit’, ‘256M’ ); @ini_set( ‘max_execution_time’, ‘300’ );Continue reading

Create Estimated 5* Google Reviews Count Shortcodes & Action Hooks for Rich Showcase for Google Reviews Plugin

if (!function_exists(‘rd_rr_table_exists’)) { function rd_rr_table_exists(string $table): bool { global $wpdb; $found = $wpdb->get_var($wpdb->prepare(“SHOW TABLES LIKE %s”, $table)); return !empty($found); } } if (!function_exists(‘rd_rr_round_down_step’)) { function rd_rr_round_down_step(int $value, int $step): int { if ($step prefix . ‘grp_google_stats’; if (!rd_rr_table_exists($stats_table)) { return…Continue reading

Create Woo Customer Count Shortcodes & Action Hooks

if (!function_exists(‘rd_wc_customer_count_get’)) { function rd_wc_customer_count_get(array $args = array()): int { if (!function_exists(‘WC’)) { return 0; } global $wpdb; $defaults = array( ‘scope’ => ‘all’, ‘registered_only’ => false, ‘roles’ => array(‘customer’), ‘require_role’ => false, ); $args = array_merge($defaults, $args); $scope =…Continue reading

Beitragsnavigation

the_post_navigation( array( ‘prev_text’ => __( ‘Vorheriger Beitrag: %title’ ), ‘next_text’ => __( ‘Nächster Beitrag: %title’ ), ) );Continue reading