$name = $value; break; default: parent::__set( $name, $value ); } } protected function tags() { return $this->tags; } public function output() { $output = parent::output(); $tags = $this->tags(); $tags_options = array(); if ( is_array( $tags ) ) { foreach ( $tags as $tag ) { $tag_name = $tag['name']; if ( empty( $tag_name ) ) continue ; $tags_options[] = sprintf( '', esc_attr( '[' . $tag_name . ']' ), '[' . $tag_name . ']' ); } } $output = str_replace( '{{tags_options}}', implode( $tags_options ), $output ); return $output; } }