ap_admin_php_version__error()

Description #

Checks PHP version before initiating AnsPress.

Source #

File: anspress-question-answer.php

	function ap_admin_php_version__error() {
		$class    = 'notice notice-error';
		$message  = '<strong>' . __( 'AnsPress is not running!', 'anspress-question-answer' ) . '</strong><br />';
		$message .= sprintf(
			// translators: %s contain server PHP version.
			__( 'Irks! At least PHP version 7.2 is required to run AnsPress. Current PHP version is %s. Please ask hosting provider to update your PHP version.', 'anspress-question-answer' ),
			PHP_VERSION
		);
		printf( '<div class="%1$s"><p>%2$s</p></div>', esc_attr( $class ), esc_html( $message ) );
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment