Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link
Owner Author

commented Jan 11, 2013

Nice thanks @mboynes!

@chrismccoy

This comment has been minimized.

Copy link

commented Sep 12, 2013

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
You can’t perform that action at this time.