# auto-alt-text/2.7.0/src/App/Admin/BulkActions/BulkActionInterface.php

Auto Alt Text, version 2.7.0. 35 lines.

- Page: https://pluginprobe.com/plugins/auto-alt-text/2.7.0/code/src/App/Admin/BulkActions/BulkActionInterface.php
- Raw: https://pluginprobe.com/plugins/auto-alt-text/2.7.0/raw/src/App/Admin/BulkActions/BulkActionInterface.php
- Modified: 2026-01-14T13:38:28+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/auto-alt-text/2.7.0/code/src/App/Admin/BulkActions/BulkActionInterface.php#L10-L20`.

```php
<?php

namespace AATXT\App\Admin\BulkActions;

/**
 * Interface for bulk actions in the media library.
 *
 * Defines the contract for implementing bulk actions that can be
 * executed on multiple media items at once.
 */
interface BulkActionInterface
{
    /**
     * Execute the bulk action on the given items.
     *
     * @param array<int> $itemIds Array of media item IDs to process
     * @return BulkActionResult Result containing total and updated counts
     */
    public function execute(array $itemIds): BulkActionResult;

    /**
     * Get the unique name/identifier of this bulk action.
     *
     * @return string The action name (e.g., 'auto_alt_text')
     */
    public function getName(): string;

    /**
     * Get the display label for this bulk action.
     *
     * @return string The translated label shown in the UI
     */
    public function getLabel(): string;
}

```
