// Add custom styles function add_the_new_normal_css() { wp_register_style( ‘the-new-normal-css’, ‘https://cdn.jsdelivr.net/gh/sarahschopick/the-new-normal.css@1f917841c3a1382d644952dcaefb67e947467e22/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
// 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
// Author: Sumaiya, anytype doc: anytype://object?objectId=bafyreiemzcszvrirdfznkbgehn3q27ayd6djlvj7rtvyhk6sue6w2diccq&spaceId=bafyreih4bocrmskuomcrks3sjwpnzxpbxvxwgto23vof3umg2fywdqzjmy.31bq39w6q8ru7&cid=bafybeifc55atash7zlqcjd3fv425bkwl7z5zstcxdilct5hstlng73xwci&key=6kKA3QiwnksqLbpcJ4T6UhmQ5BHzgJUfbpn1QLnkv5Lv /** * inkt CRM to Fluent Forms Autofill (Flowmattic Secure Connection) * * HOW IT WORKS: * 1. This script runs only when ‘project_id’ and ‘person_id’ are in the URL. * 2. It takes…Continue reading
/** * Enables the HTTP Strict Transport Security (HSTS) header in WordPress. * Includes preloading with subdomain support. */ function tg_enable_strict_transport_security_hsts_header_wordpress() { header( ‘Strict-Transport-Security: max-age=31536000; includeSubDomains; preload’ ); } add_action( ‘send_headers’, ‘tg_enable_strict_transport_security_hsts_header_wordpress’ );Continue reading
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
/** * 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