Last active
October 13, 2015 13:30
-
-
Save greenhornet79/bfd6653aadc6f55b9fde to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
add_action('admin_init', 'endo_stock_report_admin_init'); | |
function endo_stock_report_admin_init() { | |
global $plugin_page; | |
if ( isset($_POST['download_csv']) && $plugin_page == 'endo_stock_report' ) { | |
generate_stock_report_csv(); | |
die(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment