Dynamic Current Year

// Dynamic Current Year / Kiri Vadivelu / 2026 function current_year() { $year = date(‘Y’); return $year; } add_shortcode(‘current_year’, ‘current_year’);Continue reading

Disable Password Reset

// Disable Password Reset / Kiri Vadivelu / 2026 function disable_password_reset() { return false; } add_filter(‘allow_password_reset’, ‘disable_password_reset’); // Remove “Lost Your Password?” Link function remove_lostpassword_text($text) { if ($text == ‘Lost your password?’) { $text = ”; } return $text; }…Continue reading

Admin Dashboard Access

function restrict_dashboard_access() { // Allow AJAX requests to proceed if ( defined( ‘DOING_AJAX’ ) && DOING_AJAX ) { return; } // Check if user is not an administrator if ( ! current_user_can( ‘administrator’ ) && is_admin() ) { wp_redirect( home_url()…Continue reading