theme_action_links_$stylesheet

theme_action_links_$stylesheet

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('theme_action_links_$stylesheet') is found 2 times:

  • /wp-admin/includes/class-wp-ms-themes-list-table.php line 688
    684
    685
    686
    687
    688
    689
    690
    691
    692
    693
    694
         * @param string[] $actions An array of action links.
         * @param WP_Theme $theme   The current WP_Theme object.
         * @param string   $context Status of the theme, one of 'all', 'enabled', or 'disabled'.
         */
        $actions = apply_filters( "theme_action_links_{$stylesheet}", $actions, $theme, $context );
     
        echo $this->row_actions( $actions, true );
    }
     
    /**
     * Handles the description column output.
  • /wp-admin/includes/class-wp-themes-list-table.php line 243
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    /** This filter is documented in wp-admin/includes/class-wp-ms-themes-list-table.php */
    $actions = apply_filters( 'theme_action_links', $actions, $theme, 'all' );
     
    /** This filter is documented in wp-admin/includes/class-wp-ms-themes-list-table.php */
    $actions       = apply_filters( "theme_action_links_{$stylesheet}", $actions, $theme, 'all' );
    $delete_action = isset( $actions['delete'] ) ? '<div class="delete-theme">' . $actions['delete'] . '</div>' : '';
    unset( $actions['delete'] );
     
    $screenshot = $theme->get_screenshot();
    ?>