Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #60631, comment 2


Ignore:
Timestamp:
02/28/2024 04:34:43 PM (4 months ago)
Author:
anaid
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #60631, comment 2

    v1 v2  
    1 Thanks for your message.
     1Edit: `build_variation_for_navigation_link` returns
    22
    3 The use case is for taxonomies only. How to I get the corresponding taxonomy for a navigation-link block?
     3```
     4Array
     5        (
     6            [name] => tag
     7            [title] => Tag Link
     8            [description] => A link to a tag.
     9            [attributes] => Array
     10                (
     11                    [type] => tag
     12                    [kind] => taxonomy
     13                )
    414
    5 The functions you mention map from `post_tag` to `tag` but I need the reverse.
     15        )
     16```
    617
    7 (`block_core_navigation_link_build_variations` does not exist yet, it's in beta. Is there an option that works for 6.4?)
     18Seems like it doesn't actually return `post_tag`, just uses it internally.