'.colorbox', 'maxWidth' => '80%', 'maxHeight' => '80%', 'opacity' => '0.6', // For modern browsers that support CSS3 gradients this will be actually be 1 'fixed' => true, 'slideshowStart' => '\u25B6', 'slideshowStop' => 'll', ); $args = array(); /** * Allow child themes to filter the arguments. Use it like this: * * add_filter( 'cakifo_colorbox_args', 'my_child_colorbox_args' ); * function my_child_colorbox_args( $args ) { * $args['selector'] = '.colorbox, .my-new-awesome-selector'; * return $args; * } * * @var array */ $args = apply_filters( 'cakifo_colorbox_args', $args ); /** * Parse incoming $args into an array and merge it with $defaults */ $args = wp_parse_args( $args, $defaults ); // Get the selector and remove it from the arguments $selector = $args['selector']; unset( $args['selector'] ); // JSON encode the arguments $json = json_encode( $args ); echo ""; } ?>