First create global variables (in functions.php or as a mu-plugin):
<?php
/*
* CUSTOM GLOBAL VARIABLES
*/
function wtnerd_global_vars() {| #!/bin/bash | |
| # This script is used by Nagios to post alerts into a Slack channel | |
| # using the Incoming WebHooks integration. Create the channel, botname | |
| # and integration first and then add this notification script in your | |
| # Nagios configuration. | |
| # | |
| # All variables that start with NAGIOS_ are provided by Nagios as | |
| # environment variables when an notification is generated. | |
| # A list of the env variables is available here: |
First create global variables (in functions.php or as a mu-plugin):
<?php
/*
* CUSTOM GLOBAL VARIABLES
*/
function wtnerd_global_vars() {| <?php | |
| /** | |
| * Rename "Posts" to "News" | |
| * | |
| * @link http://new2wp.com/snippet/change-wordpress-posts-post-type-news/ | |
| */ | |
| add_action( 'admin_menu', 'pilau_change_post_menu_label' ); | |
| add_action( 'init', 'pilau_change_post_object_label' ); | |
| function pilau_change_post_menu_label() { |