PluginProbe ʕ •ᴥ•ʔ
AlphaListing / 4.3.4
AlphaListing v4.3.4
trunk 4.3.4 4.3.5 4.3.6 4.3.7 4.4.0
alphalisting / src / Extension.php
alphalisting / src Last commit date
Shortcode 1 year ago legacy 1 year ago Alphabet.php 1 year ago Extension.php 1 year ago Grouping.php 1 year ago GutenBlock.php 1 year ago Indices.php 1 year ago Numbers.php 1 year ago Query.php 1 year ago Shortcode.php 1 year ago Singleton.php 1 year ago Strings.php 1 year ago
Extension.php
46 lines
1 <?php
2 /**
3 * AlphaListing Extension interface
4 *
5 * @package alphalisting
6 */
7
8 declare(strict_types=1);
9
10 namespace eslin87\AlphaListing;
11
12 if ( ! defined( 'ABSPATH' ) ) {
13 exit;
14 }
15
16 /**
17 * AlphaListing Extension interface
18 */
19 interface Extension {
20 /**
21 * Singleton
22 *
23 * @since 4.0.0
24 * @return Extension extension object.
25 */
26 public static function instance(): Extension;
27
28 /**
29 * Activate
30 *
31 * @since 4.0.0
32 * @param string $file the plugin file.
33 * @param array<string,mixed> $plugin the plugin details.
34 * @return Extension extension object.
35 */
36 public function activate( string $file = '', array $plugin = array() ): Extension;
37
38 /**
39 * Initialize
40 *
41 * @since 4.0.0
42 * @return void
43 */
44 public function initialize();
45 }
46