Skip to content

Commit

Permalink
allow hrf in included in column
Browse files Browse the repository at this point in the history
  • Loading branch information
dballari committed Nov 9, 2024
1 parent de3e7fd commit c8ec9ad
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions simply-add-hidden-menu-items.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,15 @@ function add_content_to_pattern_columns($column_key, $post_id) {
echo '<span style="font-weight: 800;text-align: right;">'.esc_html($post_id); echo '</span>';
}
if($column_key == 'included_in' && $synced) {
echo esc_html(posts_included_in($post_id, 'pattern'));
echo wp_kses(
posts_included_in($post_id, 'pattern'),
array(
'a' => array(
'href' => array(),
'title' => array(),
),
)
);
}
}

Expand All @@ -256,7 +264,15 @@ function add_content_to_menus_columns($column_key, $post_id) {
echo '<span style="font-weight: 800;text-align: right;">'.esc_html($post_id); echo '</span>';
}
if($column_key == 'included_in') {
echo esc_html(posts_included_in($post_id, 'menu'));
echo wp_kses(
posts_included_in($post_id, 'menu'),
array(
'a' => array(
'href' => array(),
'title' => array(),
),
)
);
}
}

Expand Down

0 comments on commit c8ec9ad

Please sign in to comment.