Astra_Addon_Builder_Helper::__callStatic( string $function_name, array $function_agrs )
Callback exception for static methods.
Description
Parameters
- $function_name
-
(string) (Required) function name.
- $function_agrs
-
(array) (Required) function arguments.
Return
(false|mixed)
Source
File: classes/builder/class-astra-addon-builder-helper.php
public static function __callStatic( $function_name, $function_agrs ) { $key = md5( $function_name ) . md5( maybe_serialize( $function_agrs ) ); if ( isset( self::$cached_properties[ $key ] ) ) { return self::$cached_properties[ $key ]; } if ( method_exists( 'Astra_Addon_Builder_Helper', $function_name ) ) { // Check if self method exists. $class_name = 'Astra_Addon_Builder_Helper'; } elseif ( method_exists( 'Astra_Builder_Helper', $function_name ) ) { // if self method doesnot exists then check for theme helper. $class_name = 'Astra_Builder_Helper'; } else { // If not found anything then return false directly. return false; } $return_value = call_user_func_array( array( $class_name, $function_name ), $function_agrs ); self::$cached_properties[ $key ] = $return_value; return $return_value; }
Expand full source code Collapse full source code View on Trac