Closed ve3 closed 2 years ago
Your plugins_api filter called to info() method.
plugins_api
info()
The info() method that return false; after checked something is incorrect.
return false;
The return false; will be mess with another plugins information that is using the self hosted.
To be correct, it should return $res;.
return $res;
Example:
function info( $res, $action, $args ) { // print_r( $action ); // print_r( $args ); // do nothing if you're not getting plugin information right now if( 'plugin_information' !== $action ) { return $res; } // do nothing if it is not our plugin if( $this->plugin_slug !== $args->slug ) { return $res; } // get updates $remote = $this->request(); if( ! $remote ) { return $res; } // your code }
Thank you! It is fixed
Your
plugins_api
filter called toinfo()
method.The
info()
method thatreturn false;
after checked something is incorrect.The
return false;
will be mess with another plugins information that is using the self hosted.To be correct, it should
return $res;
.Example: