# storeengine/2.2.0/includes/classes/abstract-post-handler.php

StoreEngine — Complete eCommerce Solution with Memberships, Licensing, Affiliates &amp; More, version 2.2.0. 20 lines.

- Page: https://pluginprobe.com/plugins/storeengine/2.2.0/code/includes/classes/abstract-post-handler.php
- Raw: https://pluginprobe.com/plugins/storeengine/2.2.0/raw/includes/classes/abstract-post-handler.php
- Modified: 2025-04-07T16:04:40+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/storeengine/2.2.0/code/includes/classes/abstract-post-handler.php#L10-L20`.

```php
<?php

namespace StoreEngine\Classes;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

abstract class AbstractPostHandler extends AbstractRequestHandler {

	public function dispatch_actions() {
		foreach ( $this->actions as $action => $details ) {
			add_action( 'admin_post_' . $this->namespace . '/' . $action, [ $this, 'handle_request' ] );
			if ( isset( $details['allow_visitor_action'] ) && true === $details['allow_visitor_action'] ) {
				add_action( 'admin_post_nopriv_' . $this->namespace . '/' . $action, [ $this, 'handle_request' ] );
			}
		}
	}
}

```
