$plugin_name
$plugin_name : string
The unique identifier of this plugin.
The core plugin class.
This is used to define internationalization, admin-specific hooks, and public-facing site hooks.
Also maintains the unique identifier of this plugin as well as the current version of the plugin.
$loader : \O3PO_Loader
The loader that's responsible for maintaining and registering all hooks that power the plugin.
$environment : \O3PO_Environment
The environment object from which information about the environment this plugin is running in can be obtained.
$journal : \O3PO_Journal
The primary journal.
$journal_secondary : \O3PO_Journal
The secondary journal.
$primary_publication_type : \O3PO_PrimaryPublicationType
The primary publication type.
$secondary_publication_type : \O3PO_SecondaryPublicationType
The secondary publication type.
__construct(string $plugin_name, string $plugin_pretty_name, string $version)
Define the core functionality of the plugin.
Set the plugin name and the plugin version that can be used throughout the plugin. Load the dependencies, define the locale, and set the hooks for the admin area and the public-facing side of the site.
string | $plugin_name | Simplified name of the plugin |
string | $plugin_pretty_name | Pretty name of the plugin |
string | $version | Version of the plugin |
journal_config_from_settings(\O3PO_Settings $settings) : array
Generate a journal config from a settings object.
\O3PO_Settings | $settings | A settings object. |
Journal config.
setup_primary_journal( $settings) : \O3PO_Journal
Setup the primary journal.
$settings | O3PO_Settings Settings object from which to initialize the journal. |
Configured journal.
setup_secondary_journal( $settings) : \O3PO_Journal
Setup the secondary journal.
$settings | O3PO_Settings Settings object from which to initialize the journal. |
Configured journal.
load_dependencies()
Load the required dependencies for this plugin.
Include the following files that make up the plugin:
Create an instance of the loader which will be used to register the hooks with WordPress.