Skip to content

Instantly share code, notes, and snippets.

@webdados
Last active May 29, 2018 18:35
Show Gist options
  • Save webdados/574704ecf877a18a8923af78e61f821b to your computer and use it in GitHub Desktop.
Save webdados/574704ecf877a18a8923af78e61f821b to your computer and use it in GitHub Desktop.
Add CSS or other content to the output of the Stock Exporter for WooCommerce plugin when "HTML table on new window" is chosen
<?php
add_action( 'wse_screen_new_header', 'wse_screen_new_header_css', 11 );
function wse_screen_new_header_css() {
?>
<style type="text/css">
#stock-export-table .column-value-image img {
max-width: 200px;
max-height: 200px;
}
</style>
<?php
}
add_action( 'wse_screen_new_footer', 'wse_screen_new_footer_notes', 9 );
function wse_screen_new_footer_notes() {
?>
<p>Some footer notes</p>
<?php
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment