The Wayback Machine - https://web.archive.org/web/20201030055935/https://github.com/CodeParrots/php-notifier
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.