[WP 6.0.1]upgrader_post_install hook not called
-
I’d examined on WP 5.9.7 and WP 6.0.1.
At first, write like below in a class of some WP plugin’s main PHP file.
function __construct() { add_filter( 'upgrader_post_install', [ $this, 'check_update' ], 10, 3 ); } public function check_update( $response, $hook_extra, $result ) { error_log( 'called' ); }
After zipping the plugin including this PHP file, upload and install it to a WP (or updating existing plugin).
Then a log “called” is output in WP 5.9.7.
But in WP 6.0.1, the log is not shown.I guess this may a bug.
Could I get your opinon? Thank you.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘[WP 6.0.1]upgrader_post_install hook not called’ is closed to new replies.