Check for duplicate names 3 – javasrcipt

jQuery(document).ready(function($) { $(‘#duplicateNamesContainer’).on(‘click’, ‘.duplicate-name’, function(e) { e.preventDefault(); // Prevent default anchor behavior var firstName = $(this).data(‘firstname’); var lastName = $(this).data(‘lastname’); // Ensure the admin URL is correctly prefixed for your WordPress installation var adminUrl = ‘‘; // Construct the search…Continue reading

Check for duplicate names 2 – click handler

add_action(‘admin_footer’, ‘duplicate_names_click_handler’); function duplicate_names_click_handler() { // Only add this script on the Users page to avoid unnecessary loading on other admin pages. $current_screen = get_current_screen(); if ($current_screen && ‘users’ === $current_screen->id) : ?>Continue reading

Loading custom templates

/** * Plugin Name: WPForms Custom Templates * Description: This plugin loads custom form templates. * Version: 1.0.0 */ /** * Load the templates. */ function wpf_load_custom_templates() { // Template code here } add_action( ‘wpforms_loaded’, ‘wpf_load_custom_templates’ );Continue reading

Allow Customers to Exempt from Tax

add_filter( ‘simpay_get_customer_args_from_payment_form_request’, function( $customer_args, $form, $deprecated, $form_values ) { $exempt = isset( $form_values[‘simpay_field’][‘Tax Exempt’] ); if ( $exempt ) { $customer_args[‘tax_exempt’] = ‘exempt’; } return $customer_args; }, 10, 4 );Continue reading