Created
September 9, 2015 15:45
-
-
Save SeanChDavis/8ad4f7b5703e6bdf4863 to your computer and use it in GitHub Desktop.
EDD FES New Dashboard Tab
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
<?php // DO NOT COPY THIS LINE | |
function sd_vendor_dashboard_menu( $menu_items ) { | |
$menu_items['tax_form'] = array( | |
"icon" => "earnings", | |
"task" => array( 'tax_form', '' ), | |
"name" => __( 'Tax Form', 'edd_fes' ), | |
); | |
return $menu_items; | |
} | |
add_filter( 'fes_vendor_dashboard_menu', 'sd_vendor_dashboard_menu' ); | |
function sd_custom_task_response( $custom, $task ) { | |
if ( $task == 'tax_form' ) { | |
$custom = 'tax_form'; | |
} | |
return $custom; | |
} | |
add_filter( 'fes_signal_custom_task', 'sd_custom_task_response', 10, 2 ); | |
function sd_custom_tax_form_tab_content() { | |
// custom content | |
} | |
add_action( 'fes_custom_task_tax_form','sd_custom_tax_form_tab_content' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Sean,
Thanks for posting this code!
Quick question in relation to the above, I need to modify the profile page output within the vendor dashboard to add the following shortcode below the current profile form fields/section:
<?php echo do_shortcode( '[edd_profile_editor]' ); ?>
How would I best achieve this?
Thanks,
David