The parts every wpallstars plugin needs: settings screen with search and an empty General tab, Read Me tab, features as classes, replaced plugins, the shared GitHub updater, release and check scripts, CI and the shared rules. scripts/rename-plugin.sh starts a new plugin; scripts/sync-core.sh keeps plugins' core files in step with this starter. Built with aidevops (https://aidevops.sh).
19 lines
694 B
PHP
19 lines
694 B
PHP
<?php
|
|
/**
|
|
* Constants for PHPStan (phpstan.neon.dist). WordPress's functions and
|
|
* classes come from szepeviktor/phpstan-wordpress; this adds the constants
|
|
* WordPress defines while it loads (wp-settings.php, wp-config.php) and
|
|
* those wp-plugin-starter-template.php defines.
|
|
*
|
|
* @package WPStarter
|
|
*/
|
|
|
|
define('WPINC', 'wp-includes');
|
|
define('COOKIEPATH', '/');
|
|
define('SITECOOKIEPATH', '/');
|
|
define('DB_NAME', 'wordpress');
|
|
define('WPSTARTER_VERSION', '0.0.0');
|
|
define('WPSTARTER_FILE', dirname(__DIR__) . '/wp-plugin-starter-template.php');
|
|
define('WPSTARTER_DIR', dirname(__DIR__) . '/');
|
|
define('WPSTARTER_URL', 'https://example.com/wp-content/plugins/wp-plugin-starter-template/');
|