Skip to content

Latest commit

 

History

62 提交

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

仓库 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.

贡献者: codeparrots, eherman24, brothman01
标签: 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 );

关于

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

Topics

Resources

Stars

1 star

关注者

2 watching

复刻s

发布

贡献者

Languages