# Class Sidecar_Singleton_Base

#### Direct known subclasses

Sidecar_Plugin_Base
Abstract
Located at classes/class-singleton-base.php

Methods summary
`public` | # `__construct( array $args = array() )` #### Parameters $args `array` $args
`public static `Sidecar_Singleton_Base`` | # `this( )` #### Returns ``Sidecar_Singleton_Base``
`public static mixed` | # `get( mixed $instance_var_name )` Clean syntax to access the value on an instance variable for a Singleton class Clean syntax to access the value on an instance variable for a Singleton class #### Parameters $instance_var_name `mixed` $instance_var_name #### Returns `mixed`
`public static mixed` | # `call( string $method_name )` Clean syntax to call a method on an instance variable for a Singleton class Clean syntax to call a method on an instance variable for a Singleton class #### Parameters $method_name `string` $method_name #### Returns `mixed`
`public mixed` | # `add_filter( string $action_name, boolean|integer|string|array $callable_or_priority = false, integer $priority = 10 )` Adds a filter hook for an object Adds a filter hook for an object $this->add_filter( 'wp_title' ); $this->add_filter( 'wp_title', 11 ); $this->add_filter( 'wp_title', 'special_func' ); $this->add_filter( 'wp_title', 'special_func', 11 ); $this->add_filter( 'wp_title', array( __CLASS__, 'class_func' ) ); $this->add_filter( 'wp_title', array( __CLASS__, 'class_func' ), 11 ); #### Parameters $action_name `string` $action_name $callable_or_priority `boolean|integer|string|array` $callable_or_priority $priority `integer` $priority #### Returns `mixed`
`public mixed` | # `add_action( string $action_name, boolean|integer|string|array $callable_or_priority = false, integer $priority = 10 )` Adds an action hook for an objectx`x` `x`` ` Adds an action hook for an objectx`x` `x`` ` $this->add_action( 'init' ); $this->add_action( 'init', 11 ); $this->add_action( 'init', 'special_func' ); $this->add_action( 'init', 'special_func', 11 ); $this->add_action( 'init', array( __CLASS__, 'class_func' ) ); $this->add_action( 'init', array( __CLASS__, 'class_func' ), 11 ); #### Parameters $action_name `string` $action_name $callable_or_priority `boolean|integer|string|array` $callable_or_priority $priority `integer` $priority #### Returns `mixed`
`protected static string` | # `_get_called_class( )` Return name of calling class. Return name of calling class. Provides (hacky) support for PHP < 5.3. #### Returns `string`