WordPress.org

Ready to get started?Download WordPress

Forums

New WordPress Code Reference (3 posts)

  1. ElectricFeet
    Member
    Posted 2 months ago #

    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 :-)

  2. Chris Barrett
    Member
    Posted 2 months ago #

    Thank you for feedback, but unfortunately the support forums is not the correct place for such feedback. For information on how you can get involved in improving the documentation of the WordPress site, please review the following: http://make.wordpress.org/docs/

  3. @mercime
    Volunteer Moderator
    Posted 2 months ago #

    @electricfeet Thank you for your input.

    For the developer.wordpress.org project, please check out http://make.wordpress.org/docs/tag/devhub/ and http://make.wordpress.org/docs/handbook/projects/devhub/ where you'll also find ways to get involved in the project.

Reply

You must log in to post.

About this Topic