wp-optionskit icon indicating copy to clipboard operation
wp-optionskit copied to clipboard

a way to access options

Open cgsmith opened this issue 4 years ago • 1 comments

I'm struggling to find a way to access the options or dig through the source to find out how the options are named.

cgsmith avatar Mar 14 '21 15:03 cgsmith

@cgsmith I wonder why nobody has messaged you here yet.

Here's how I do it, which is pretty straightforward:

new OptionsKit( 'myslug' );

// "myslug" here is the one used to set up the OptionsKit object.
$settings = get_option( 'myslug_settings' );

noplanman avatar Mar 08 '22 08:03 noplanman