Hi there,
I don’t know why but I have suddenly a plugin message like “DISALLOW_FILE_EDIT is defined. You should also disallow PHP execution in GP Hooks. Learn how”. Why?
How can I solve it?
Just put this in wp_config?
add_action( ‘after_setup_theme’, ‘tu_remove_hooks_php_check’ );
function tu_remove_hooks_php_check() {
remove_action( ‘admin_notices’,’generate_hooks_php_check’ );
}
We don’t have “define( ‘DISALLOW_FILE_EDIT’, true );” line in wp-config.php
Where?
According to the link of the article that you have sent me, it is into the wp-config.php after this line:“define( ‘DISALLOW_FILE_EDIT’, true );”
And that line does not appear in my config.
So that message, “DISALLOW_FILE_EDIT is defined. You should also disallow PHP execution in GP Hooks. Learn how” in the WP desktop is not critical? Can I leave it?