Support

Account

Home Forums Add-ons Options Page Endpoint for Options Page in REST Api

Unread

Endpoint for Options Page in REST Api

  • Hi,

    I use this snippet to create an Options Page:

        // Check function exists.
        if( function_exists('acf_add_options_page') ) {
    
            // Register options page.
            $option_page = acf_add_options_page(array(
    			'page_title' => 'options',
    			'menu_title' => 'options',
    			'capability' => 'edit_posts',
    			'redirect'   => false,
    			'post_id'    => 'options'
            ));
        }

    Now I tried to access the data with /wp-json/wp/v2/options/options
    The result is ‘rest_no_route’
    Any ideas how to access it correctly?

    Beste Steffen

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.