Download the PHP package pixelgrade/wp-post-notes without Composer
On this page you can find all versions of the php package pixelgrade/wp-post-notes. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pixelgrade/wp-post-notes
More information about pixelgrade/wp-post-notes
Files in pixelgrade/wp-post-notes
Package wp-post-notes
Short Description WordPress library for adding internal, private or public notes to posts, pages, or any custom post type.
License GPL-2.0-or-later
Homepage https://github.com/pixelgrade/wp-post-notes
Informations about the package wp-post-notes
WP Post Notes
WordPress library for adding public and private notes to posts, pages, or any custom post type.
About
WordPress library for adding public and private notes to posts, pages, or any custom post type.
Releases
Before creating a new release zip, run the composer run prepare-for-release
command to keep everything production-oriented.
Running Tests
To run the PHPUnit tests, in the root directory of the plugin, run something like:
or
Bear in mind that there are simple unit tests (hence the --testsuite=Unit
parameter) that are very fast to run, and there are integration tests (--testsuite=Integration
) that need to load the entire WordPress codebase, recreate the db, etc. Choose which ones you want to run depending on what you are after.
You can run either the unit tests or the integration tests with the following commands:
or
Important: Before you can run the tests, you need to create a .env
file in tests/phpunit/
with the necessary data. You can copy the already existing .env.example
file. Further instructions are in the .env.example
file.
Credits
This WordPress library uses much code/logic extracted and modified from WooCommerce, mainly the order notes logic.