/** * @link https://library.wpcode.com/snippet/d2zk7n2x/ */ add_filter( ‘simpay_get_customer_args_from_payment_form_request’, /** * @param array $args * @return array */ function( $args ) { if ( isset( $args[‘phone’] ) ) { $args[‘metadata’][‘phone’] = $args[‘phone’]; } return $args; } );Continue reading
/** * @link https://library.wpcode.com/snippet/3234y0or/ */ add_filter( ‘simpay_get_customer_args_from_payment_form_request’, /** * @param array $customer_args * @param SimplePay\Core\Abstracts\Form $form Form instance. * @param array $form_data Form data generated by the client. * @param array $form_values Values of named fields in the payment form.…Continue reading
add_filter( ‘seedprod_remove_page_template’, function($value){ return false; });Continue reading
// EIOS Event auto page updater for TGT & GF Version 1.1 // // Schedule daily cron jobs for upcoming and past events if (!wp_next_scheduled(‘update_events_cron_hook’)) { wp_schedule_event(time(), ‘daily’, ‘update_events_cron_hook’); } // Attach the function to run when either cron job…Continue reading
// Create admin menu for ‘Update Single Event’ if (!function_exists(‘custom_single_event_button_menu’)) { add_action(‘admin_menu’, ‘custom_single_event_button_menu’); function custom_single_event_button_menu() { add_menu_page(‘Update Single Event’, ‘Update Single Event’, ‘manage_options’, ‘update_single_event’, ‘update_single_event_manual_trigger’, ”, 98); } } // Display admin menu content for ‘Update Single Event’ if (!function_exists(‘update_single_event_manual_trigger’))…Continue reading
// Create admin menu for ‘Update Single Event’ if (!function_exists(‘custom_single_event_button_menu’)) { add_action(‘admin_menu’, ‘custom_single_event_button_menu’); function custom_single_event_button_menu() { add_menu_page(‘Update Single Event’, ‘Update Single Event’, ‘manage_options’, ‘update_single_event’, ‘update_single_event_manual_trigger’, ”, 98); } } // Display admin menu content for ‘Update Single Event’ if (!function_exists(‘update_single_event_manual_trigger’))…Continue reading
// Remove side menu add_action( ‘admin_menu’, function () { remove_menu_page( ‘edit.php’ ); } ); // Remove +New post in top Admin Menu Bar add_action( ‘admin_bar_menu’, function ( $wp_admin_bar ) { $wp_admin_bar->remove_node( ‘new-post’ ); }, 999 ); // Remove Quick Draft…Continue reading
/** * Make standard form fields to make read-only * To apply, add CSS class ‘wpf-disable-field’ (no quotes) to field in form builder * * @link https://wpforms.com/developers/disable-a-form-field-to-prevent-user-input/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_dev_disable_field() { ?>Continue reading
/** * Block form submissions based on IP address * * @link https://wpforms.com/developers/how-to-block-ip-addresses-from-completing-your-form/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_ip_block( $fields, $entry, $form_data ) { // Get the current users IP address $ip_address = wpforms_get_ip(); // Enter…Continue reading