public static function run_callback( $callback = '', $callback_args = array() ) {

		if ( ! is_callable( $callback ) ) {
			return null;
		}

		try {
			$result = call_user_func_array( $callback, $callback_args );

		} catch ( \Exception $caught_exception ) {
			$result = $caught_exception;
		}

		return $result;
	}
public static function run_callback( $callback = '', $callback_args = array() ) {

		if ( ! is_callable( $callback ) ) {
			return null;
		}

		try {
			$result = call_user_func_array( $callback, $callback_args );

		} catch ( \Exception $caught_exception ) {
			$result = $caught_exception;
		}

		return $result;
	}
public static function run_callback ( $ callback = '' , $ callback_args = array ( ) ) { if ( ! is_callable ( $ callback ) ) { return null ; } try { $ result = call_user_func_array ( $ callback , $ callback_args ) ; } catch ( \ Exception $ caught_exception ) { $ result = $ caught_exception ; } return $ result ; }
Executes the specified callback function, passing in with the supplied arguments.

@param mixed $callback      The callback function to run.
@param array $callback_args The arguments to be passed to the callback function.

@return mixed The callback result, or null if the callback was not callable, or \Exception if the callback threw an exception.
Executes the specified callback function passing in with the supplied arguments .