• Imagemasondm

    (@masondm)


    I’m trying to browse the functions and hooks that are prefixed with wp_ as they seem quite useful (e.g. wp_enqueue_script() and 'wp_head'. I would expect them to be listed on the functions and hooks references, but nothing starting with wp_ is listed on these references.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter Imagemasondm

    (@masondm)

    Well, in making this forum post, I answered my own question, at least partially. Turns out, the functions and hooks references linked above change depending on whether or not you’re logged into wordpress.org. If you’re logged out, both of them stop at page 49.

    Moderator Imagethreadi

    (@threadi)

    Interesting, but yes – that’s probably for performance reasons. However, all pages related to the functions and hooks can be found via Google. If I’m looking for a specific hook that can always be found this way. But your search request is somewhat unusual 🙂

    You can find hooks in the links below:

    Action hooks: https://developer.wordpress.org/apis/hooks/action-reference/
    Filter hooks: https://developer.wordpress.org/apis/hooks/filter-reference/

    These pages list all WordPress core hooks alphabetically, including the wp_-prefixed ones like wp_head, wp_footer, wp_enqueue_scripts, etc.

    Thread Starter Imagemasondm

    (@masondm)

    Thank you 🙂 I had been able to find the hooks reference pages you mentioned in the time since I posted this. I still haven’t found anything like it for functions though.

    Moderator Imagebcworkz

    (@bcworkz)

    There is a functions list. You’ll have to hunt around a bit to find the page where wp_* functions start. Also note that there are many useful functions that do not begin with “wp_”

    Thread Starter Imagemasondm

    (@masondm)

    Yes, I did find that. I actually skimmed the whole thing. But what would be nice is something that breaks the functions down into categories, like the hooks references above.

    Moderator Imagebcworkz

    (@bcworkz)

    Nice indeed. The docs are composed by the volunteer documentation team. If you have the time and inclination, I’m sure they’d welcome some additional help 🙂

Viewing 7 replies - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.