filtrod 2.8.0
page_row_actions
Opis — z kodu źródłowego
Filters the array of row action links on the Pages list table.
The filter is evaluated only for hierarchical post types.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$actions | string[] | An array of row action links. Defaults are 'Edit', 'Quick Edit', 'Restore', 'Trash', 'Delete Permanently', 'Preview', and 'View'. |
$post | \WP_Post | The post object. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'page_row_actions', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'page_row_actions', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii