wp386-child/functions.php

26 lines
739 B
PHP
Raw Normal View History

2023-01-17 15:11:09 -05:00
<?php
/**
* Custom template tags for this theme.
*/
require get_stylesheet_directory() . '/inc/template-tags.php';
2024-08-20 16:40:07 -04:00
2024-08-20 16:11:22 -04:00
/**
* Hide WordPress Version Number from Generator Meta Tag
*/
2024-08-23 05:27:39 -04:00
//remove_action('wp_head', 'wp_generator');
2024-08-20 16:11:22 -04:00
/**
* Hide WordPress Version Number from the RSS Feeds
*/
function remove_wp_version_rss() { return''; }
add_filter('the_generator','remove_wp_version_rss');
2024-08-13 07:08:43 -04:00
// Activate WordPress Maintenance Mode
function wp_maintenance_mode() {
if (!current_user_can('edit_themes') || !is_user_logged_in()) {
wp_die('<h1>Under Maintenance</h1><br />Website under planned maintenance. Please check back later.');
}
}
// add_action('get_header', 'wp_maintenance_mode');
// Activate WordPress Maintenance Mode