%1$s requires PHP %2$s or higher.', 'advanced-post-manager' ),
esc_html( $label_names ),
tribe_get_php_min_version()
)
) .
'
' .
esc_html__( 'To allow better control over dates, advanced security improvements and performance gain.', 'advanced-post-manager' ) .
'
' .
esc_html(
sprintf(
/* translators: 1: Required PHP version */
__( 'Contact your Hosting or your system administrator and ask to Upgrade to version %1$s of PHP.', 'advanced-post-manager' ),
tribe_get_php_min_version()
)
);
}
/**
* Fetches the name of the plugins that are not compatible with current PHP version.
*
* @since 4.5.5
*
* @return array
*/
function tribe_not_php_version_names() {
/**
* Allow us to include more plugins without increasing the number of notices.
*
* @since 4.5.5
*
* @param array $names Name of the plugins that are not compatible.
*/
return apply_filters( 'tribe_not_php_version_names', [] );
}
/**
* Echoes out the error for the PHP min version as a WordPress admin Notice.
*
* @since 4.5.5
*
* @return void
*/
function tribe_not_php_version_notice() {
echo '
' . wp_kses_post( tribe_not_php_version_message() ) . '