Tag Archives: Functions

A List of Commonly Unknown WP Function

Elliott from Laser Red wrote a round up of helpful WordPress functions that you don’t usually read about:

  1. get_post_field
  2. wp_list_pluck
  3. antispambot
  4. checked/selected
  5. body_class
  6. human_time_diff
  7. wp_send_json_success/error
  8. wp_remote_get/post
  9. get_template_part

If you’re a WordPress dev, I really suggest you check out this article, because he gives an explanation and code example for each one of these in an a quick, easy to read format.

WP Seek WordPress Search Engine API

I was happy to stumble across the site wpseek.com, which works as an all things WordPress search engine.

What really impressed me though is their API, which let’s you do things like get specs on a specific function or a list of all WP functions.

For example using the following URL http://api.wpseek.com/?method=wordpress.getfunction&s=the_title will return a JSON object with the basic Codex info on the plugin.

I don’t see a way to get info like WP_Query, but this is still a cool resource if you’re trying to pull together some simple docs on the fly.

Thanks to Oliver Schlöbe for your great work!