Developer bookmarks

Here are a couple of quick-access bookmarks that perform searches directly on WordPress’ Developer Resources. I like to have these handy for quick lookups; they simply prompt me for an input string and go straight to WP search results. (You may need to enable JavaScript within your browser’s URL bar.)

First, a good one to use when you can’t quite remember the name of the function / method / hook / class you need. Type part of the name, and all results of all types are shown:

javascript:window.location.href='https://developer.wordpress.org/?s='+prompt('function/hook/class%20name:')+'&post_type%5B%5D=wp-parser-function&post_type%5B%5D=wp-parser-hook&post_type%5B%5D=wp-parser-class&post_type%5B%5D=wp-parser-method'

You could make the above search input more granular, and create four separate bookmarks for each result type, by editing the query args. For instance this would provide only hook names:

javascript:window.location.href='https://developer.wordpress.org/?s='+prompt('hook%20name:')+'&post_type%5B%5D=wp-parser-hook'

As you probably know, the Developer Resources area provides comprehensive results, but they’re light on descriptions and examples. An alternative is the Codex Function search, which isn’t nearly as comprehensive, and requires you to provide the precise function name, but offers much more documentation:

javascript:window.location.href='http://codex.wordpress.org/Function_Reference/'+prompt('function%20name:');

Similarly, you can create bookmarks on 'http://codex.wordpress.org/Plugin_API/Action_Reference/'+prompt('Action name:'), 'http://codex.wordpress.org/Plugin_API/Filter_Reference/'+prompt('Filter name:'), 'https://codex.wordpress.org/Class_Reference/'+prompt('Class name:') and probably others — browse the site hierarchy for other ideas.