Skip to content
Snippets Groups Projects
Commit 094038d4 authored by Lucas García's avatar Lucas García
Browse files

feat: filter menu content

parent e889c441
No related branches found
No related tags found
1 merge request!3Git submodules
......@@ -10,20 +10,7 @@ class Menu extends BaseMenu
protected function render_page()
{
ob_start();
?>
<div class="wrap">
<h1><?= $this->name ?></h1>
<form action="options.php" method="post">
<?php
settings_fields($this->settings->get_group_name());
do_settings_sections($this->settings->get_group_name());
submit_button();
?>
</form>
</div>
<?php
$output = ob_get_clean();
echo apply_filters('wpct_epr_forms_menu_page_content', $output);
$output = parent::render_page();
echo apply_filters('wpct_erp_forms_menu_page_content', $output);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment