Add Invoice PDF as Attachment to Catering Form Emails

// Add view as PDF attachment // add_filter( ‘frm_pdfs_email_attachment_args’, ‘add_view_to_attached_pdf’, 10, 2 ); function add_view_to_attached_pdf( $pdf_args, $args ) { if($args[‘form’]->id ==5) { //change 5 to the ID of the form $pdf_args[‘view’] = 10; // ID of view. $pdf_args[‘id’] = $args[‘entry’]->id;…Continue reading

Mobile Dock HTML and JS (by Andrei)

add_action(‘wp_footer’, ‘add_custom_mobile_dock’); function add_custom_mobile_dock() { if (is_cart() || is_checkout()) { return; // Don’t show dock on cart or checkout pages } ?> Начало Меню Търсене ПомощContinue reading

Add Class to Formidable Forms reCAPTCHA Fields

add_filter(‘frm_field_div_classes’, function( $classes, $field ){ // For all Captcha fields (includes reCAPTCHA v2/v3) if ( isset( $field[‘type’] ) && $field[‘type’] === ‘captcha’ ) { $classes .= ‘ captcha-no-margin’; } return $classes; }, 10, 2);Continue reading

Woo Commerce Zip Gate

/** * ZIP gate for ALL products — works with Classic Checkout and the Block Checkout (Store API). * Blocks checkout unless billing OR shipping ZIP is in the allowed list. */ add_action(‘init’, function () { // —————– SETTINGS —————–…Continue reading

404 Logger

/** * Log 404 requests for pages/posts/assets, excluding admin or login areas. */ function log_public_404_requests() { // Only proceed if this is a 404 page on the front end if ( is_404() && ! is_admin() ) { $request_uri = $_SERVER[‘REQUEST_URI’]…Continue reading

EP Backfill Images – Admin Only

// Backfill missing featured images for Events // Runs only in Admin when dashboard loads add_action(‘admin_init’, function() { if ( ! current_user_can(‘manage_options’) ) { return; } $args = [ ‘post_type’ => ‘tribe_events’, ‘post_status’ => ‘publish’, ‘posts_per_page’ => 20, // small…Continue reading