Example #1
0
function remove_action($id)
{
    remove_post($id);
    $posts = get_all_posts();
    $html = render_template('View/Templates/admin.php', array('posts' => $posts));
    return $html;
    //require "View/Templates/show.php";
    // require "View/Templates/list.php";
}
Example #2
0
 public function remove_all()
 {
     kt_remove_attachment();
     kt_remove_cate();
     kt_remove_menu();
     remove_post();
     remove_page();
     remove_other_post();
     kt_remove_menu_items();
     remove_widget();
     $this->remove_mark();
 }
function remove_action($id)
{
    $post = remove_post($id);
    header('Location: ../index.php');
}
Example #4
0
function kt_remove_menu_items()
{
    remove_post('nav_menu_item', 'kt_demo_nav_menu_item');
}