wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



theme_action_links › Les Filtres WordPress

Depuis2.8.0
Dépréciéen/a
apply_filters( 'theme_action_links', array_filter( $actions )
Paramètres: (3)
  • (string[]) $actions An array of action links.
    Requis: Oui
  • (WP_Theme) $theme The current WP_Theme object.
    Requis: Oui
  • (string) $context Status of the theme, one of 'all', 'enabled', or 'disabled'.
    Requis: Oui
Défini(e) dans:
Codex:

Filters the action links displayed for each theme in the Multisite themes list table.

The action links displayed are determined by the theme's status, and which Multisite themes list table is being displayed - the Network themes list table (themes.php), which displays all installed themes, or the Site themes list table (site-themes.php), which displays the non-network enabled themes when editing a site in the Network admin.

The default action links for the Network themes list table include 'Network Enable', 'Network Disable', and 'Delete'.

The default action links for the Site themes list table include 'Enable', and 'Disable'.





Source

$actions = apply_filters( 'theme_action_links', array_filter( $actions ), $theme, $context );