Symbols defined in plugin-scaffold.php, includes/functions.php, and the public classes under includes/. Private methods are omitted.
Constants
Defined in plugin-scaffold.php. dev/phpstan/constants.php repeats them for static analysis and is not loaded at runtime.
Reference
6 fields
Plugin constants
Typed options, defaults, and constraints in one scannable reference.
-
PLUGIN_SCAFFOLD_FILEstring required -
Absolute path of plugin-scaffold.php.
-
PLUGIN_SCAFFOLD_PATHstring required -
Plugin directory path with trailing slash.
-
PLUGIN_SCAFFOLD_URLstring required -
Plugin directory URL.
-
PLUGIN_SCAFFOLD_BASENAMEstring required -
plugin-scaffold/plugin-scaffold.php in a normal install.
-
PLUGIN_SCAFFOLD_BLOCK_PATHstring required -
Always defined. The blocks directory exists only after the blocks overlay is applied.
-
PLUGIN_SCAFFOLD_VERSIONstring required -
Plugin header version. Surrounded by x-release-please version comments.
No fields match this filter.
Functions
Reference
3 fields
Procedural functions
Typed options, defaults, and constraints in one scannable reference.
-
plugin_scaffold_initany required -
void. Hooked to plugins_loaded. Instantiates Bootstrap and calls run(), or adds the missing-autoloader admin notice.
-
plugin_scaffold_missing_autoloader_noticeany required -
void. Prints an error notice when Bootstrap cannot be loaded. Requires current_user_can( ‘activate_plugins’ ).
-
plugin_scaffold_versionstring required -
Returns PLUGIN_SCAFFOLD_VERSION, or 0.0.0 if that constant is not defined. Guarded with function_exists.
No fields match this filter.
Classes
Linchpin\Plugin_Scaffold\Core\Bootstrap
Reference
2 fields
Bootstrap public methods
Typed options, defaults, and constraints in one scannable reference.
-
runany required -
void. Loads controllers, calls register_actions() on each, then do_action( ‘plugin_scaffold_ready’, $this ).
-
get_controllerany required -
get_controller( string $name ): Controller_Interface|null. $name is the class name relative to the Controller namespace, for example Install.
No fields match this filter.
Linchpin\Plugin_Scaffold\Controller\Controller_Interface
Reference
1 field
Controller_Interface
Typed options, defaults, and constraints in one scannable reference.
-
register_actionsany required -
void. Register the WordPress hooks this controller listens on.
No fields match this filter.
Linchpin\Plugin_Scaffold\Controller\Install
Implements Controller_Interface.
Reference
3 fields
Install
Typed options, defaults, and constraints in one scannable reference.
-
register_actionsany required -
void. Empty. Activation is registered from plugin-scaffold.php.
-
activateany required -
static void. Fires plugin_scaffold_activated.
-
deactivateany required -
static void. Empty. Comment in source: data stays.
No fields match this filter.
Linchpin\Plugin_Scaffold\Helper\Files
final class.
Reference
1 field
Files
Typed options, defaults, and constraints in one scannable reference.
-
glob_recursivearray required -
glob_recursive( string $pattern, int $flags = 0 ): string[]. glob() that descends into subdirectories. Used by Bootstrap to find controllers.
No fields match this filter.
Actions
Reference
2 fields
do_action hooks
Typed options, defaults, and constraints in one scannable reference.
-
plugin_scaffold_readyany required -
Fires once every controller has registered its hooks. Argument: Bootstrap $bootstrap.
-
plugin_scaffold_activatedany required -
Fires from Install::activate after activation. No arguments.
No fields match this filter.
add_action( 'plugins_loaded', 'plugin_scaffold_init' );register_activation_hook( __FILE__, [ \Linchpin\Plugin_Scaffold\Controller\Install::class, 'activate' ] );register_deactivation_hook( __FILE__, [ \Linchpin\Plugin_Scaffold\Controller\Install::class, 'deactivate' ] );
Overlay-only symbols
Linchpin\Plugin_Scaffold\Controller\Blocks and the linchpin/example block are not in this checkout's runtime. They are documented on the blocks overlay page.