Created
April 18, 2019 11:09
-
-
Save zabidxoothemes/83e25e817516ce57dc35feff5a75a004 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Adding custom tab | |
*/ | |
add_filter( 'learn-press/course-tabs', 'reptro_add_custom_tab' ); | |
function reptro_add_custom_tab( $tabs ){ | |
$tabs['programm_tab'] = array( | |
'title' => __( 'Programma', 'learnpress' ), | |
'priority' => 65, | |
'callback' => 'reptro_programma_custom_tab_content' | |
); | |
return $tabs; | |
} | |
if( !function_exists('reptro_programma_custom_tab_content') ){ | |
function reptro_programma_custom_tab_content(){ | |
echo 'Type your content here. If anyone click on "Programma" tab then this text will show.'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment