Skip to content

Instantly share code, notes, and snippets.

@AaronHolbrook
Last active December 10, 2015 23:39
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AaronHolbrook/4511254 to your computer and use it in GitHub Desktop.
Save AaronHolbrook/4511254 to your computer and use it in GitHub Desktop.
Curls in the Function reference page from WordPress.org, strips everything except the function name. For future use in building Sublime plugin for function lookups.
curl -s http://codex.wordpress.org/Function_Reference | grep -C 0 "title=\"Function Reference" | sed 's/.*:.*Function Reference\/.*">//' | sed 's/<.*>//' | sed 's/(.*)//' > wp-functions.txt
@mboynes
Copy link

mboynes commented Jan 11, 2013

Check out https://github.com/welovewordpress/SublimeWordPressCodex -- does function lookups. I bind ctrl-shift-h to wordpress_codex_open_selection so it's lightning fast to look up whatever function my cursor is on!

{ "keys": ["ctrl+shift+h"], "command": "wordpress_codex_open_selection", "context": [{ "key": "selector", "operator": "equal", "operand": "source.php" }]}

@AaronHolbrook
Copy link
Author

Nice thanks @mboynes!

@chrismccoy
Copy link

seems the code needs an update, they must have changed the output of the page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment