WP Manifestindependent plugin directory
manifest / developer / ab-easy-option-page

AB Easy Options page WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

Wordpress plugin to add an option page

★ 1stars
30release downloads
≈10active sites
v.1.0.3latest · 2 years ago

Install

Download ab-easy-option-page.zip From the v.1.0.3 release on GitHub, Sep 7, 2024

Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/bernier154/ab-easy-option-page/releases/download/v.1.0.3/ab-easy-option-page.zip
Updates itself. It ships its own updater (Update URI header), so new versions appear under Dashboard → Updates.

AB Easy Option Page is a dev oriented plugin to easily add an option page to a Wordpress website. I strive to make is as easy as possible to customize it via hooks. This plugin was created as a need for websites that didn't needed ACF but needed some sort of updatable option for the admins.



Usage

Register an option

Register the options you need in your functions.php. | Arg name | Possible value | | ------------- | ------------- | | name | The nice name of the option | | slug | The slugified name of the option. Only use letters and undescores. | | type | The type of field. Accepts: text, email, tel, date, textarea, wysiwyg, number, image, checkbox, select, color. | | description | The description show with the option in the admin panel. (Optional) | | options | If your Option is a Select, provide an associative array of the options (Optional) |

Example:

    function abop_register_options(){
        abop_register_option([
            "name"=>"My nice option",
            "description" => "This option appear in the footer.",
            "slug"=>"nice_option",
            "type"=> "text"
        ]);
    }
    add_action('init','abop_register_options');


Retrieve an option

Arg name Possible value
option_slug string

Example:

    <p><?php echo esc_html(abop_get_option('nice_option')) ?></p>



DEBUG information

If your option won't register, debug messages can be printed to the debug log. To get the various message in the debug log, declare this constant in wp_config :

define('ABOP_DEBUG',true);
// Make sure that WP_DEBUG AND WP_DEBUG_LOG are defined in your wp-config.php

Mentions

Thanks to rudrastyh for creating a tutorial for self hosting updates. His work was used to make the update server possible.

Releases

5 releases. Each count is every asset in that release; expand a row for the breakdown.

Tag
Published
Assets
Downloads
v.1.0.3 latest
Sep 7, 2024 2 years ago
ab-easy-option-page.zip
7
Sep 7, 2024 2 years ago
ab-easy-option-page.zip
9
Dec 5, 2022 3 years ago
ab-easy-option-page.zip
11
Dec 5, 2022 3 years ago
ab-easy-option-page.zip
3
Dec 4, 2022 3 years ago
tag only
—

Active-site estimate ≈10 comes from the median of recent superseded releases. Method.

A grade

Security

AB Easy Options page 1.0.3 · audited by WP Registry

No security issues found.

Audited release
1.0.3
Findings
none
Worst severity
—
Content hash
36d5a6cc0a4183bcff1d6f16…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.