Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
PHP: First Test
/**
*
* Everyday hours shortcode handler.
* See https://github.com/MZAWeb/business-hours-plugin/wiki/Shortcodes
*
* @param $atts
*
* @return mixed|null
*/
public function shortcode_table( $atts ) {
extract( shortcode_atts( array( 'collapsible' => 'false', ), $atts ) );
$collapsible = ( strtolower( $collapsible ) === "true" ) ? true : false;
if ( $collapsible )
$this->enqueue_resources();
return $this->get_table( $collapsible );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.