PluginProbe
WP EXtra – One Click Optimize / 8.7.0
WP EXtra – One Click Optimize v8.7.0
8.7.1 8.6.8 8.7.0 trunk 5.9 8.0 8.5.0 8.5.4 8.5.5 8.6.0 8.6.1 8.6.2 8.6.3 8.6.5
wp-extra / src / Base.php

Base.php in WP EXtra – One Click Optimize 8.7.0, at src/Base.php

19 lines 327 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace WPEXtra;
3
4 if ( ! defined( 'ABSPATH' ) ) {
5 exit;
6 }
7
8 class Base {
9 protected $features = [];
10
11 public function __construct() {
12 foreach ( $this->features as $feature ) {
13 if ( Helper::is_feature_active( $feature ) && method_exists( $this, $feature ) ) {
14 $this->$feature();
15 }
16 }
17 }
18 }
19