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

This package is auto-updated.

Last update: 2024-11-22 17:35:21 UTC


README

Version: 1.0.8

Packagist codecov Coverage Status Maintainability styled with prettier

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.