WpvFramework

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) 

Arguments

$options

array

framework options

Autoload classes when needed

autoload(string $class) 

Arguments

$class

string

class name

Get the theme version

get_version() : string
static

Response

string

theme version as defined in style.css

Defines constants used by the theme

set_constants(array $options) 

Arguments

$options

array

framework options

Register theme support for various features

theme_supports() 

Load interface translations

load_languages() 

Loads the main php files used by the framework

load_functions() 

Loads external plugins

load_plugins() 

Registers post types

load_types() 

Load shortcodes

load_shortcodes() 

Load widgets

load_widgets() 

Loads the theme administration code

load_admin() 

Adds the Vamtam menu to the admin bar

setup_adminbar() 

Properties

Cache the result of some operations in memory

cache : array
static
var

Type(s)

array

Post types with double sidebars

complex_layout : 
static