Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
BBP_Forums_Admin::sort_row_actions( array $actions = array() )
Sort row actions by key
Description Description
Parameters Parameters
- $actions
-
(Optional)
Default value: array()
Return Return
(array)
Source Source
File: includes/admin/forums.php
private function sort_row_actions( $actions = array() ) { // Return value $retval = array(); // Known row actions, in sort order $known_actions = $this->get_row_action_sort_order(); // Sort known actions, and keep any unknown ones foreach ( $known_actions as $key ) { if ( isset( $actions[ $key ] ) ) { $retval[ $key ] = $actions[ $key ]; unset( $actions[ $key ] ); } } // Combine & return return $retval + $actions; }
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |