id() ) ) {
return;
}
$message = __( "You are not allowed to edit this contact form.", 'contact-form-7' );
echo sprintf(
'
%s
',
esc_html( $message )
);
}
add_action( 'wpcf7_admin_warnings', 'wpcf7_outdated_php_warning', 10, 3 );
function wpcf7_outdated_php_warning( $page, $action, $object ) {
if ( ! version_compare( PHP_VERSION, '7.4', '<' ) ) {
return;
}
$message = __( "The next major release of Contact Form 7 will discontinue support for outdated PHP versions. If you don't upgrade PHP, you will not be able to upgrade the plugin.", 'contact-form-7' );
echo sprintf(
'