# desktop-mode/1.1.9/includes/framework/app/wordpress/class-hooks.php

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

- Page: https://pluginprobe.com/plugins/desktop-mode/1.1.9/code/includes/framework/app/wordpress/class-hooks.php
- Raw: https://pluginprobe.com/plugins/desktop-mode/1.1.9/raw/includes/framework/app/wordpress/class-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.9/code/includes/framework/app/wordpress/class-hooks.php#L10-L20`.

```php
<?php
/**
 * OpenStation App Framework — WordPress Hooks adapter.
 *
 * `filter()` is `apply_filters()`, `action()` is `do_action()`. An
 * app's seams are therefore ordinary WordPress hooks that any plugin
 * can attach to with `add_filter()` / `add_action()`.
 *
 * @package OpenStation
 */

namespace OpenStation\App\WordPress;

use OpenStation\App\Contracts\Hooks as HooksContract;

defined( 'ABSPATH' ) || exit;

/**
 * WordPress filters and actions.
 */
final class Hooks implements HooksContract {

	/** {@inheritDoc} */
	public function filter( $hook, $value, ...$args ) {
		// phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores -- The app names the hook; the adapter only relays it.
		return apply_filters( (string) $hook, $value, ...$args );
	}

	/** {@inheritDoc} */
	public function action( $hook, ...$args ) {
		// phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores -- The app names the hook; the adapter only relays it.
		do_action( (string) $hook, ...$args );
	}
}

```
