WP_List_Table::handle_row_actions()
Generates and display row actions links for the list table.
Метод класса: WP_List_Table{}
Хуков нет.
Возвращает
Строку
. The row actions HTML, or an empty string if the current column is not the primary column.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->handle_row_actions( $item, $column_name, $primary );
- $item(объект|массив) (обязательный)
- The item being acted upon.
- $column_name(строка) (обязательный)
- Current column name.
- $primary(строка) (обязательный)
- Primary column name.
Список изменений
С версии 4.3.0 | Введена. |
Код WP_List_Table::handle_row_actions() WP List Table::handle row actions WP 6.5.2
protected function handle_row_actions( $item, $column_name, $primary ) { return $column_name === $primary ? '<button type="button" class="toggle-row"><span class="screen-reader-text">' . /* translators: Hidden accessibility text. */ __( 'Show more details' ) . '</span></button>' : ''; }