is_tag_closer() ) { $context->rewind_context(); return; } $value = $tags->get_attribute( 'data-wp-context' ); $new_context = json_decode( is_string( $value ) && ! empty( $value ) ? $value : '{}', true ); $context->set_context( $new_context ?? array() ); }