skipv1_0_0element_return
Helping function for handling element objects.
Description
Parameters (2)
- 0. $object (object)
- The object to handle
- 1. $return — Optional. (string) =>
'html'
- How to return echo,, object or html
Usage
if ( !function_exists( 'skip\v1_0_0\element_return' ) ) { require_once '/includes/skip/elements/element.php'; } // The object to handle $object = null; // How to return 'echo', 'object' or 'html' $return = 'html'; // NOTICE! Understand what this does before running. $result = skip\v1_0_0\element_return($object, $return);
Defined (1)
The function is defined in the following location(s).
- /includes/skip/elements/element.php
- function element_return( $object, $return = 'html' ) {
- return $object->render();
- }