PluginProbe
StoreEngine — Complete eCommerce Solution with Memberships, Licensing, Affiliates & More / 2.2.0
StoreEngine — Complete eCommerce Solution with Memberships, Licensing, Affiliates & More v2.2.0
2.3.0 2.2.0 2.1.1 2.1.0 2.0.0 1.10.0 1.9.1 1.9.0 1.2.1 1.2.2 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.6.0 All 59 releases
storeengine / includes / classes / abstract-post-handler.php

abstract-post-handler.php in StoreEngine — Complete eCommerce Solution with Memberships, Licensing, Affiliates & More 2.2.0, at includes/classes/abstract-post-handler.php

20 lines 555 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace StoreEngine\Classes;
4
5 if ( ! defined( 'ABSPATH' ) ) {
6 exit;
7 }
8
9 abstract class AbstractPostHandler extends AbstractRequestHandler {
10
11 public function dispatch_actions() {
12 foreach ( $this->actions as $action => $details ) {
13 add_action( 'admin_post_' . $this->namespace . '/' . $action, [ $this, 'handle_request' ] );
14 if ( isset( $details['allow_visitor_action'] ) && true === $details['allow_visitor_action'] ) {
15 add_action( 'admin_post_nopriv_' . $this->namespace . '/' . $action, [ $this, 'handle_request' ] );
16 }
17 }
18 }
19 }
20