alleyinteractive/wp-allegro-audience
Composer 安装命令:
composer require alleyinteractive/wp-allegro-audience
包简介
WordPress Plugin to include Allegro Audience on your site.
README 文档
README
Contributors: alleyinteractive
Tags: alleyinteractive, wp-allegro-audience
Stable tag: 0.0.0
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 8.2
License: GPL v2 or later
WordPress Plugin to include Allegro Audience on your site..
Installation
You can install the package via Composer:
composer require alleyinteractive/wp-allegro-audience
Usage
Activate the plugin in WordPress and use it like so:
$plugin = Create_WordPress_Plugin\Allegro_Audience\Allegro_Audience(); $plugin->perform_magic();
Development
To setup a WordPress installation and run the plugin in a local environment, you
can use wp-env via the composer dev command:
npm install composer dev
The command will start a local WordPress environment with the plugin activated
while also running the front-end assets build process. You can also run npm run start to start the front-end assets build process separately. The front-end
assets will be compiled into the build directory and will be enqueued
automatically by the plugin.
Registering Meta
The plugin supports registering post and term meta via JSON files located in the
config directory. Out of the box, the plugin will look for
config/post-meta.json for post meta and config/term-meta.json for term meta.
{
"$schema": "https://raw.githubusercontent.com/alleyinteractive/mantle-framework/HEAD/src/mantle/support/schema/meta.json",
"example_meta_key": {
"post_types": "article",
"type": "string"
},
"another_meta_key": {
"post_types": [ "article", "page" ],
"type": "number",
"single": false,
"default": 0
}
}
For more information on how to register meta via JSON files, see the documentation.
Testing
Run composer test to run tests against PHPUnit and the PHP code in the plugin.
Unit testing code is written in PSR-4 format and can be found in the tests
directory.
Releasing the Plugin
The plugin uses
action-release via a
built release workflow to compile and
tag releases. Whenever a new version is detected in the root plugin's headers in
the wp-allegro-audience.php file or in the composer.json file, the workflow will
automatically build the plugin and tag it with a new version. The built tag will
contain all the required front-end assets the plugin may require. This works
well for publishing to WordPress.org or for submodule-ing.
When you are ready to release a new version of the plugin, you can run
npm run release/composer release to start the process of setting up a new
release. If you want to do this manually you can follow these steps:
-
Change the
Versionin thewp-allegro-audience.phpfile to a new higher-level version.- * Version: 0.0.0 + * Version: 0.0.1
✨
npm run releasewill do this for you automatically. -
Commit your changes and push to the repository.
-
Check the actions tab in the repository to see the progress of the release. The action will automatically create a new tag and release for the plugin. You are done!
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
This project is actively maintained by Alley Interactive. Like what you see? Come work with us.
License
The GNU General Public License (GPL) license. Please see License File for more information.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2026-07-14