xxsimoxx/codepotent-update-manager

Hooks names different from documentation

xxsimoxx opened this issue · 2 comments

Description

For example to filter the request you have to hook to Update_Manager_filter_request but in the documentation is written codepotent_update_manager_filter_request.

I have verified that the filter works as expected; the documentation depicts the correct hook. The following contrived example demonstrates.

add_filter('codepotent_update_manager_filter_request', 'intercept_request');
function intercept_request($request) {
	set_transient('request_'.time(), $request, 300);
	return $request;
}

Perhaps you have edited core Update Manager files such as constants.php or functions.php.

No, but I haven't downloaded the release. I've forked the master branch.
Just now I was having some trouble with PLUGIN_FILENAME, and the problem was the directory name of the plugin (Update-Manager if cloning from Git).
So my error, sorry!