/** * 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
@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
add_filter( ‘aioseo_ai_assistant_block_enabled’, ‘__return_false’ );Continue reading
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
/** * Make Bricks product queries (Products element) respect * WooCommerce Wholesale Prices Premium product visibility. */ add_filter( ‘bricks/posts/query_vars’, function ( $query_vars, $settings, $element_id, $element_name ) { // Only affect product queries $post_type = $query_vars[‘post_type’] ?? null; $is_product_query = (…Continue reading
if (!function_exists(‘rd_wc_round_down_step’)) { function rd_wc_round_down_step(int $value, int $step): int { if ($stepContinue reading
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
function wpbeginner_remove_version() { return ”; } add_filter(‘the_generator’, ‘wpbeginner_remove_version’);Continue reading
add_action( ‘wp_head’, function () { ?>Continue reading
the_post_navigation( array( ‘prev_text’ => __( ‘Vorheriger Beitrag: %title’ ), ‘next_text’ => __( ‘Nächster Beitrag: %title’ ), ) );Continue reading