WordPress.org

Make WordPress Core

Changeset 40974


Ignore:
Timestamp:
07/01/17 03:01:16 (3 months ago)
Author:
DrewAPicture
Message:

Users: Introduce the manage_users_extra_tablenav action, fired immediately outside the closing "actions" div in the Users list table tablenav.

A similar manage_posts_extra_tablenav hook fires in the same location and context in the Posts list table tablenav.

Props GunGeekATX, adamsilverstein.
Fixes #36990.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-users-list-table.php

    r40956 r40974  
    282282         */ 
    283283        do_action( 'restrict_manage_users', $which ); 
    284         echo '</div>'; 
     284    ?> 
     285        </div> 
     286    <?php 
     287        /** 
     288         * Fires immediately following the closing "actions" div in the tablenav for the users 
     289         * list table. 
     290         * 
     291         * @since 4.9.0 
     292         * 
     293         * @param string $which The location of the extra table nav markup: 'top' or 'bottom'. 
     294         */ 
     295        do_action( 'manage_users_extra_tablenav', $which ); 
    285296    } 
    286297 
Note: See TracChangeset for help on using the changeset viewer.