Skip to content
This repository was archived by the owner on Jul 26, 2022. It is now read-only.
Mattias edited this page Oct 13, 2020 · 2 revisions

4. Hooks

Add html or php code before/after tab or table

4.1. Add content before

add_action('wpts_tab_[tab key here]_before' , 'general');
function general(){
    // code here
}

4.2. Add content after

add_action('wpts_tab_[tab key here]_after' , 'general');
function general(){
    // code here
}

4.3. Add content before table

add_action('wpts_tab_[tab key here]_table_before' , 'general_table');
function general_table(){
    // code here
}

Include tr/td to follow the table structure.

4.4. Add content after table

add_action('wpts_tab_[tab key here]_table_after' , 'general_table');
function general_table(){
    // code here
}

Include tr/td to follow the table structure.

Clone this wiki locally