This is the first loaded framework file

WpvFramework does the following (in this order): - sets constants for the frequently used paths - loads translations - loads the plugins bundled with the theme - loads some functions and helpers used in various places - sets the custom post types - loads the shortcode library for the framework - if this is wp-admin, load admin files

This class also loads the custom widgets and sets what the theme supports (+ custom menus)

 Methods

Initialize the Vamtam framework

__construct(array $options) 

Parameters

$options

array

framework options

Autoload classes when needed

autoload(string $class) 

Parameters

$class

string

class name

Get the theme version

getVersion() : string
Static

Returns

stringtheme version as defined in style.css

Load widgets

load_widgets() 

Adds the Vamtam menu to the admin bar

setup_adminbar() 

Register theme support for various features

theme_supports() 

Loads the theme administration code

load_admin() 

Loads the main php files used by the framework

load_functions() 

Load interface translations

load_languages() 

Loads external plugins

load_plugins() 

Load shortcodes

load_shortcodes() 

Registers post types

load_types() 

Defines constants used by the theme

set_constants(array $options) 

Parameters

$options

array

framework options

 Properties

 

$cache : array