/vuester

WordPress theme idea with Vue.js

Primary LanguageCSS

Vuester

Vuester is an idea for WordPress themes powered by Vue.js. Check out a demo.

Requirements

How to install

Clone this theme to themes folder and run npm install.

MyTheme Class

Add atomatically all files under template directory

MyTheme::add_templates();

Set menus

MyTheme::set_menus( array(
    'main-navigation' => __('Main Navigation')
));

Theme Endpoints Class

Define custom endpoints

$endpoints = new ThemeEndpoints();

// site.com/wp-json/theme/custom
$endpoints->get( 'custom', function() {
    return {
        'message': 'this is a custom endpoint'
    };
} );

Notes

WP API Menus plugin don't work with WordPress REST API (Version 2).