PluginProbe
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder / 2.13.0
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder v2.13.0
2.13.0 2.13.1 2.12.0 2.11.1 2.11.0 2.10.0 2.9.0 2.7.4 2.7.5 2.7.6 2.7.7 2.8.0 2.8.1 2.9.1 trunk 1.0 1.0-beta1 1.0-beta2 1.0-beta3 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 All 80 releases
← All changes | includes/frontend.php +23 -0 1.02.13.0 View file →
@@ -1,0 +1,23 @@
1 +<?php
2 +namespace ABlocks;
3 +
4 +if ( ! defined( 'ABSPATH' ) ) {
5 + exit; // Exit if accessed directly.
6 +}
7 +
8 +class Frontend {
9 + public static function init() {
10 + $self = new self();
11 + $self->dispatch_hooks();
12 + }
13 +
14 + public function dispatch_hooks() {
15 + Frontend\Template::init();
16 + Frontend\Link::init();
17 + Frontend\LinkPassthrough::init();
18 + if ( ! is_admin() || defined( 'DOING_AJAX' ) && DOING_AJAX ) {
19 + add_filter( 'render_block', [ Frontend\DynamicContent\Interpreter::class, 'init' ], 10, 3 );
20 + }
21 + }
22 +
23 +}