Skip to content

Notify users when their version of PHP has been or is about to be deprecated.

Notifications You must be signed in to change notification settings

CodeParrots/php-notifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Notifier v1.0.0

Notify users when the version of PHP running on their server has been or is about to be deprecated and will no longer be supported with security fixes.

Contributors: codeparrots, eherman24, brothman01
Tags: php, version, notifier, notice, deprecated, alert, email
Requires at least: 4.4
Tested up to: WordPress v4.7.2
Stable tag: 1.0.0
License: GPL-2.0

Filters

php_notifier_admin_footer_text

Description: Toggle on/off the additional admin footer text displaying the PHP version. Boolean: True or False Default: True

/**
 * Turn off the admin footer text
 */
add_filter( 'php_notifier_admin_footer_text', '__return_false' );

php_notifier_warning_message

Description: Alter the PHP warning message displayed. Parameters:

  • $message - The warning message to be displayed.
  • $warning_type - The type used when displaying the warning message. (Warning types: deprecated, deprecated-soon, unsupported)
/**
 * Change the deprecated warning message
 */
function alter_deprecated_warning_message( $message, $warning_type ) {

	if ( 'deprecated' === $warning_type ) {

		return 'This is the new message that will be displayed.';

	}

	return $message;

}
add_filter( 'php_notifier_warning_message', 'alter_deprecated_warning_message', 10, 2 );

About

Notify users when their version of PHP has been or is about to be deprecated.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published