Update Single Event 1.3

// 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

Update Single Event 1.3

// 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

Disable Blog Posts

// 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

Disable a Form Field to Prevent User Input

/** * 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 IP Addresses From Completing Your Form

/** * 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