Samples

Add this code to your theme's functions.php.

Simplest

function add_custom_options() {
    if( ! class_exists( 'Alchemy_Options\Includes\Options' ) || wp_doing_ajax() ) {
        return;
    }

    $options = array(
        'options' => array(
            array(
                'id' => 'text-option',
                'type' => 'text',
            ),
        ),
    );

    new Alchemy_Options\Includes\Options( $options );
}

add_action( 'init', 'add_custom_options' );

With two tabs - Main and Inner

Network options

The config is almost exactly the same, only you should use the Network_Options class instead of Options. E.g.

With a repeater field in one of two tabs

Last updated