WordPress.org

Support

Support » Requests and Feedback » New WordPress Code Reference

New WordPress Code Reference

  • Thanks for the new code reference. Great that you’ve got this up and running.

    A couple of requests:

    1. (Easy) If I’m browsing for hooks, I don’t want to have to go through hundreds of pages to try to figure out where the one I want will be. Could you load at least 200 hooks per page, not 10? As this is all text, it will load very fast. The current 10 hooks per page gives me 161 pages, whereas 200 hooks per page would reduce this to 9 pages—much better.

    2. (Harder) Any chance you can rearrange it the output, so that it lists the hook name, parameters and then the type of action? The repetition of “apply_filters” and “do_action” over and over at the beginning of the lines doesn’t help readability.

    I’m suggesting something like this:

    Hook name:   added_{$meta_type}_meta
    Parameters:  int $mid, int $object_id, string $meta_key, mixed $meta_value
    Type:        Action
    Description: Fires immediately after meta of a specific type is added.
    
    Hook name:   additional_capabilities_display
    Parameters:  bool $enable, WP_User $profileuser
    Type:        Filter
    Description: Filter whether to display additional capabilities for the user.

    (with your lovely colours, of course)

    Thanks for considering it 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘New WordPress Code Reference’ is closed to new replies.