* element in the login page footer. */ function admilogu_render_video_bg() { $bg_type = get_option('admilogu_bg_type', 'color'); $bg_video = get_option('admilogu_bg_video', admilogu_DEFAULT_VIDEO); $bg_video_mute = get_option('admilogu_bg_video_mute', 1); if ($bg_type === 'video' && !empty($bg_video)) { $muted = $bg_video_mute ? 'muted' : ''; echo ''; } } add_action('login_footer', 'admilogu_render_video_bg'); /** * Customize Login Logo URL * * Filters the URL of the login logo to point to the custom link * configured in the plugin settings. * * @param string $url The original logo URL. * @return string The modified logo link. */ function admilogu_login_logo_url($url) { return get_option('admilogu_logo_link', 'https://wordpress.org/'); } add_filter('login_headerurl', 'admilogu_login_logo_url'); /** * Customize Login Logo Title * * Filters the title attribute of the login logo to use the custom title * configured in the plugin settings. * * @param string $title The original logo title. * @return string The modified logo title. */ function admilogu_login_logo_title($title) { return get_option('admilogu_logo_title', ''); } add_filter('login_headertext', 'admilogu_login_logo_title'); /** * Render Custom Footer * * Outputs the custom footer HTML configured in the settings. */ function admilogu_render_custom_footer() { $footer = get_option('admilogu_custom_footer', ''); if (!empty($footer)) { echo ''; } } add_action('login_footer', 'admilogu_render_custom_footer');