// Custom Login Message function custom_login_message($message) { if (empty($message)){ return “ Please enter your Id and Password below to login to the TN CLES Website, Thank You “; } else { return $message; } } add_filter(‘login_message’, ‘custom_login_message’); // Custom Logo…Continue reading
add_action( ‘init’, function() { if ( ! current_user_can( ‘manage_options’ ) && ! is_admin() && ! is_login() ) { wp_die( ‘This website is currently undergoing scheduled maintenance. Please try again later.’ ); } } );Continue reading
/** * Hide Price & Add to Cart for Non Logged in Users for Specific Products */ function is_non_purchasable_products_for_visitors( $product ) { $not_purchasable_products = array( 23, 22 ); // Replace with Products ID you want to set as non purchasable…Continue reading
/* * Create a unique_id Smart Tag and assign it to each form submission. * * @link https://wpforms.com/developers/how-to-create-a-unique-id-for-each-form-entry/ */ // Generate Unique ID Smart Tag for WPForms function wpf_dev_register_smarttag( $tags ) { // Key is the tag, item is the…Continue reading
/* ===================================================== WCV Vendors Login Form – Custom Styling This CSS snippet customizes the vendor registration form to improve layout, typography, colors, and button style ===================================================== */ /* Customise vendor login fields */ form#wcv-login-form .wcv-field-wrapper>input { width: 60%; height: 48px;…Continue reading
/** * Name: fw_resetPasswordURL * Desc: Returns the URL for the password reset page * **/ add_shortcode(“fw-reset-password-url”, “fw_resetPasswordURL”); function fw_resetPasswordURL($atts) { return wp_lostpassword_url(); }Continue reading
add_filter(‘frm_validate_field_entry’, ‘maybe_redirect’, 10, 3); function maybe_redirect( $errors ){ if ( isset( $errors[‘field’. 410 ]) && $errors[‘field’. 410 ] == ‘This email address is already registered.’ ) { //change 799 to your email field id wp_redirect(‘https://pwu.mxi.mybluehost.me/login/’); //change the url to the…Continue reading
/** * Add “BLL Admin Panel” to the WordPress admin menu */ add_action(‘admin_menu’, ‘admin_config_panel_register_menu’); /** Creating Menu Structure **/ function admin_config_panel_register_menu() { // Check current user role if (!current_user_can(‘administrator’) && !current_user_can(‘shop_manager’) && !current_user_can(‘affiliate_manager’)) { return; // Do not add menu…Continue reading
function fw_custom_reset_password_label($translated_text, $text, $domain) { // Check if the current domain matches your theme or plugin if ($domain === ‘default’) { // Change the text from “Username or Email Address” to “Username” if ($text === __(‘Username or Email Address’, ‘default’))…Continue reading
/** * Name: fw_rallyRegistrations * Description: Outputs HTML for a view, regarding the registration(s) the user is signed up for * **/ add_shortcode(‘fw-rally-registrations’, ‘fw_rallyRegistrations’); function fw_rallyRegistrations($atts) { $past_or_future = isset($atts[“timeframe”]) ? $atts[“timeframe”] : “all”; $todays_date = date(“Y-m-d”); $html = “”;…Continue reading