Clean text

add_action(‘admin_footer’, function () { global $post; if (get_post_type($post) !== ‘shop_order’) { return; } $order = wc_get_order($post->ID); if (!$order) { return; } if ($order->get_payment_method() !== ‘linkmoney’) { return; } ?>Continue reading

Action Scheduler Tuning

add_filter( ‘action_scheduler_retention_period’, function ( $period ) { return 7 * DAY_IN_SECONDS; } ); add_filter( ‘action_scheduler_default_cleaner_statuses’, function ( $statuses ) { $statuses[] = ‘failed’; return $statuses; } ); add_filter( ‘action_scheduler_cleanup_batch_size’, function ( $batch_size ) { return 50; } ); function eg_increase_time_limit(…Continue reading

Enhance WooCommerce Order Search with Shopify Order Number Meta

function add_custom_shopify_order_number_search( $search_fields ) { $search_fields[] = ‘shopify_order_number’; return $search_fields; } add_filter( ‘woocommerce_order_table_search_query_meta_keys’, ‘add_custom_shopify_order_number_search’ ); add_filter( ‘woocommerce_shop_order_search_fields’, ‘add_custom_shopify_order_number_search’ );Continue reading

VG uuid generation for inkontaktsystem_vg_uuid table

/** * ============================================================================ * WORDPRESS SEQUENTIAL VG NUMBER GENERATION FUNCTION * ============================================================================ * @author Gerrit * @description Generates unique sequential numbers using the table’s * auto-increment ID and returns codes like “VG0001”. * @since 2025-11-14 * * FUNCTION NAME TO…Continue reading

uuid generation script for inkontaktsystem_object_uuid table

/** * ============================================================================ * WORDPRESS UUID GENERATION FUNCTION FOR INKONTAKTSYSTEM * ============================================================================ * @author Sumaiya * @description This function generates a unique UUID in format “xxx_xxx” and * creates a type-prefixed UUID “type_xxx_xxx”. It automatically * inserts the record into…Continue reading

Duplicate Post/Page Link (copy)

// Add duplicate button to post/page list of actions. add_filter( ‘post_row_actions’, ‘wpcode_snippet_duplicate_post_link’, 10, 2 ); add_filter( ‘page_row_actions’, ‘wpcode_snippet_duplicate_post_link’, 10, 2 ); // Let’s make sure the function doesn’t already exist. if ( ! function_exists( ‘wpcode_snippet_duplicate_post_link’ ) ) { /** *…Continue reading

Duplicate Post/Page Link (copy)

// Add duplicate button to post/page list of actions. add_filter( ‘post_row_actions’, ‘wpcode_snippet_duplicate_post_link’, 10, 2 ); add_filter( ‘page_row_actions’, ‘wpcode_snippet_duplicate_post_link’, 10, 2 ); // Let’s make sure the function doesn’t already exist. if ( ! function_exists( ‘wpcode_snippet_duplicate_post_link’ ) ) { /** *…Continue reading

Versturen van een TESTMAIL

/** * Pixelsz – E-mailtest + vaste afzender en logo (200px) * – Gereedschap → Pixelsz E-mailtest * – Vaste logo-URL (niet wijzigbaar), 200px breed * – Schakelaar: afzendernaam + e-mail afdwingen voor ALLE mails (uit=grijs, aan=groen) */ if (!defined(‘ABSPATH’))…Continue reading