normalize css (the new normal)

// Add custom styles function add_the_new_normal_css() { wp_register_style( ‘the-new-normal-css’, ‘https://github.com/sarahschopick/the-new-normal.css/blob/c413cad2074e314774f538dd044ad30d8b5ce31d/the-new-normal.css’, array(), ‘1.0.0’ ); wp_enqueue_style( ‘the-new-normal-css’ ); } add_action( ‘wp_enqueue_scripts’, ‘add_the_new_normal_css’ );Continue reading

Login Restrict

// Restrict login to only the senior developer by user ID function restrict_login_to_senior_dev( $user, $username, $password ) { // Allow login only for the specified user ID $allowed_user_id = 1; // Replace with your user ID (e.g., 1, 2, etc.)…Continue reading

Removing File Upload Fields from Notifications

add_filter( ‘wpforms_emails_notifications_field_ignored’, ‘wpf_ignore_email_fields’, 10, 3 ); function wpf_ignore_email_fields( $is_ignored, $field, $form_data ) { if ( empty( $form_data[‘id’] ) ) { return $is_ignored; } // TODO: Change `1` to your form ID. if ( (int) $form_data[‘id’] !== 1 ) { return…Continue reading

Removing the Header Image From Notification Emails of Specific Forms

/** * Remove header image from email notifications for specific form IDs. */ add_filter( ‘wpforms_emails_templates_general_set_initial_args’, ‘wpforms_remove_header_image_by_form_id’, 10, 2 ); function wpforms_remove_header_image_by_form_id( $args, $template ) { // List the form IDs that should NOT include a header image. $forms_without_header = array(…Continue reading