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

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

  • /wp-admin/includes/class-wp-ms-themes-list-table.php line 688
    		 * @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
    			/** 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();
    			?>