TICKET NUMBER

/** * Increment total entry number on each submission * * @link https://wpforms.com/developers/how-to-increment-a-count-on-each-form-submission */ function wpf_dev_update_total_field( $fields, $entry, $form_data ) { $my_form_id = 24433; // Form ID to track if( $form_data[ ‘id’ ] != $my_form_id ) { return $fields; }…Continue reading

Elementor Rest Bridge

if (!defined(‘ABSPATH’)) { exit; } add_action(‘init’, function () { $post_types = array(‘page’, ‘post’, ‘elementor_library’); foreach ($post_types as $pt) { register_post_meta($pt, ‘_elementor_data’, array( ‘show_in_rest’ => true, ‘single’ => true, ‘type’ => ‘string’, ‘auth_callback’ => function () { return current_user_can(‘edit_posts’); }, ));…Continue reading

Disable WordPress auto-update emails (plugins/themes/core)

// Disable auto-update emails. add_filter( ‘auto_core_update_send_email’, ‘__return_false’ ); // Disable auto-update emails for plugins. add_filter( ‘auto_plugin_update_send_email’, ‘__return_false’ ); // Disable auto-update emails for themes. add_filter( ‘auto_theme_update_send_email’, ‘__return_false’ );Continue reading

Add a button to customer data

add_action( ‘woocommerce_admin_order_data_after_billing_address’, ‘custom_customer_history_search_button_blue’, 10, 1 ); function custom_customer_history_search_button_blue( $order ) { // Vásárló e-mail címének lekérése $customer_email = $order->get_billing_email(); if ( $customer_email ) { // A keresési URL összeállítása $search_url = admin_url( ‘edit.php?s=’ . urlencode( $customer_email ) . ‘&post_type=shop_order’ );…Continue reading