admin管理员组文章数量:1414621
I'm trying to edit the HTML output of a plugin, but I'm not sure how to do it properly.
This is the code
// display the heading
$content .= '<h' . $heading_level . ' class="mbm-book-grid-heading' . ( $l + 1 ) . '">' . esc_html($label) . '</h' . $heading_level .'>';
do_action('mbdb_book_grid_post_heading', $l, $label);
What I want to change is the $label, the new code would look like this
$text_label = explode(':', $label);
$text_label = $text_label[1];
$content .= '<h' . $heading_level . ' class="mbm-book-grid-heading' . ( $l + 1 ) . '">' . esc_html($text_label) . '</h' . $heading_level .'>';
Now, how can I proceed to that by using Wordpress Actions and Filters? I've never done this before, so I'm a bit confused.
Thanks.
本文标签: Edit plugin39s HTML output with Hooks
版权声明:本文标题:Edit plugin's HTML output with Hooks 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745183432a2646572.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论