tag . '_' . $tag->priority; /** * If tag_name and priority exists * Then merge the keywords */ if ( isset( $this->tags[ $unique_id ] ) ) { $this->tags[ $unique_id ]->merge_keywords( $keywords ); if ( ! $use_cache ) { $this->tags[ $unique_id ]->set_use_cache( false ); } } else { $this->tags[ $unique_id ] = $tag; } } /** * Process every tag * * @since 1.2.0 */ public function run_actions() { foreach ( $this->tags as $tag ) { add_action( $tag->tag, array( $tag, 'cookiebot_start_buffer' ), $tag->priority - 1 ); add_action( $tag->tag, array( $tag, 'cookiebot_stop_buffer' ), $tag->priority + 1 ); } } /** * Returns true if tags has more than 0 item * * @return bool * * @since 1.2.0 */ public function has_action() { return count( $this->tags ) > 0; } }