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 ) ); }
Expand full source code Collapse full source code View on GitHub: anspress-question-answer.php:44
Add your comment