# desktop-mode/1.1.8/includes/framework/app/contracts/interface-hooks.php

OpenStation: Desktop Windows, Dock &amp; Virtual Desktops for WP Admin, version 1.1.8. 41 lines.

- Page: https://pluginprobe.com/plugins/desktop-mode/1.1.8/code/includes/framework/app/contracts/interface-hooks.php
- Raw: https://pluginprobe.com/plugins/desktop-mode/1.1.8/raw/includes/framework/app/contracts/interface-hooks.php
- Modified: 2026-09-04T15:30:56+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/desktop-mode/1.1.8/code/includes/framework/app/contracts/interface-hooks.php#L10-L20`.

```php
<?php
/**
 * OpenStation App Framework — Hooks contract.
 *
 * The extensibility bus. Apps expose their seams through it exactly
 * as WordPress code does — `filter()` to let others reshape a value,
 * `action()` to announce that something happened — and the host
 * decides what those calls mean.
 *
 * @package OpenStation
 */

namespace OpenStation\App\Contracts;

// Direct access, unless a standalone host is booting on bare PHP.
if ( ! defined( 'ABSPATH' ) ) {
	defined( 'OPENSTATION_STANDALONE' ) || exit;
}

interface Hooks {

	/**
	 * Run a value through every registered filter callback.
	 *
	 * @param string $hook  Hook name.
	 * @param mixed  $value Value to filter.
	 * @param mixed  ...$args Extra arguments handed to the callbacks.
	 * @return mixed Filtered value.
	 */
	public function filter( $hook, $value, ...$args );

	/**
	 * Fire an action.
	 *
	 * @param string $hook    Hook name.
	 * @param mixed  ...$args Arguments handed to the callbacks.
	 * @return void
	 */
	public function action( $hook, ...$args );
}

```
