Repository navigation
Expand file tree
/
Copy pathplugin.php
More file actions
59 lines (51 loc) · 1.75 KB
/
Copy pathplugin.php
File metadata and controls
59 lines (51 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
/**
* @wordpress-plugin
* Plugin Name: Outstand Icons
* Description: A toolkit for working with icons in the block editor.
* Plugin URI: https://outstand.site/?utm_source=wp-plugins&utm_medium=outstand-icons&utm_campaign=plugin-uri
* Requires at least: 7.0
* Requires PHP: 8.2
* Version: 1.0.2
* Author: Outstand
* Author URI: https://outstand.site/?utm_source=wp-plugins&utm_medium=outstand-icons&utm_campaign=author-uri
* License: GPL-3.0-or-later
* License URI: https://spdx.org/licenses/GPL-3.0-or-later.html
* Update URI: https://outstand.site/
* GitHub Plugin URI: https://github.com/pixelalbatross/outstand-icons
* Text Domain: outstand-icons
* Domain Path: /languages
*/
namespace Outstand\WP\Icons;
use YahnisElsts\PluginUpdateChecker\v5\PucFactory;
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
define( 'OUTSTAND_ICONS_VERSION', '1.0.2' );
define( 'OUTSTAND_ICONS_BASENAME', plugin_basename( __FILE__ ) );
define( 'OUTSTAND_ICONS_URL', plugin_dir_url( __FILE__ ) );
define( 'OUTSTAND_ICONS_PATH', plugin_dir_path( __FILE__ ) );
define( 'OUTSTAND_ICONS_DIST_URL', OUTSTAND_ICONS_URL . 'build/' );
define( 'OUTSTAND_ICONS_DIST_PATH', OUTSTAND_ICONS_PATH . 'build/' );
if ( ! file_exists( OUTSTAND_ICONS_PATH . 'vendor/autoload.php' ) ) {
return;
}
require_once OUTSTAND_ICONS_PATH . 'vendor/autoload.php';
if ( class_exists( PucFactory::class ) ) {
PucFactory::buildUpdateChecker(
'https://github.com/pixelalbatross/outstand-icons/',
__FILE__,
'outstand-icons'
)->setBranch( 'main' );
}
/**
* Load the plugin.
*/
add_action(
'plugins_loaded',
function () {
$plugin = Plugin::get_instance();
$plugin->enable();
}
);