ideasonpurpose / wp-admin-separators
A simple class for injecting separators into the WordPress admin dashboard menu.
v1.0.8
2023-07-22 14:09 UTC
Requires (Dev)
- ideasonpurpose/wp-test-stubs: dev-main@dev
- phpunit/phpunit: ^10.2
README
Version: 1.0.8
A simple class for injecting separators into the WordPress admin dashboard menu
String values will be rejected. Float arguments will be passed without modification. Duplicate indexes will be merged.
Usage
This library is available on Packagist, to use it, require it in composer.json or tell Composer to load the package:
$ composer require ideasonpurpose/wp-admin-separators
Then add separators to the admin like this:
use IdeasOnPurpose\WP\Admin; new Separators(25, 26);
Arguments can also be an array, a mix of integers and arrays, or number-ish strings.