Skip to content

Instantly share code, notes, and snippets.

<?php
class Form_Submissions_Table extends WP_List_Table
{
/**
* Constructor for the list table.
*/
public function __construct()
{
@OwlthTech
OwlthTech / Custom_WP_List_Table.php
Last active September 5, 2025 15:39
WordPress Admin Table
<?php
if (!class_exists('WP_List_Table')) {
require_once ABSPATH . 'wp-admin/includes/class-wp-list-table.php';
}
class Woo_Gst_Report_Table extends WP_List_Table
{
/**
@OwlthTech
OwlthTech / plugin-options-menu-dashboard-tabs.php
Created September 17, 2024 11:29
Code snippet for the settings options tabs in wordpress admin dashboard
<?php
// Admin class
class Owlth_Manager_Admin {
public function __construct() {
add_action( 'admin_menu', array( $this, 'register_admin_menu' ) );
add_action( 'admin_init', array( $this, 'register_settings' ) );
}
// Register admin menu