%1$s requires PHP %2$s or higher.', '%1$s require PHP %2$s or higher.', $count_names, 'the-events-calendar' ), esc_html( $label_names ), tribe_get_php_min_version() ) ) . '
' . esc_html__( 'To allow better control over dates, advanced security improvements and performance gain.', 'the-events-calendar' ) . '
' . esc_html__( 'Contact your Host or your system administrator and ask to upgrade to the latest version of PHP.', 'the-events-calendar' ); } /** * Fetches the name of the plugins that are not compatible with current PHP version * * @since 4.8 * * @return array */ function tribe_not_php_version_names() { /** * Allow us to include more plugins without increasing the number of notices * * @since 4.8 * * @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.8 * * @return void */ function tribe_not_php_version_notice() { echo '

' . tribe_not_php_version_message() . '

'; } /** * Loads the Text domain for non-compatible PHP versions * * @since 4.8 * * @param string $domain Which domain we will try to translate to * @param string $file Where to look for the lang folder * * @return void */ function tribe_not_php_version_textdomain( $domain, $file ) { load_plugin_textdomain( $domain, false, plugin_basename( $file ) . DIRECTORY_SEPARATOR . 'lang' . DIRECTORY_SEPARATOR ); } endif;