Title: anewphpcoder's Replies | WordPress.org

---

# anewphpcoder

  [  ](https://wordpress.org/support/users/anewphpcoder/)

 *   [Profile](https://wordpress.org/support/users/anewphpcoder/)
 *   [Topics Started](https://wordpress.org/support/users/anewphpcoder/topics/)
 *   [Replies Created](https://wordpress.org/support/users/anewphpcoder/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/anewphpcoder/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/anewphpcoder/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/anewphpcoder/engagements/)
 *   [Favorites](https://wordpress.org/support/users/anewphpcoder/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Print Invoice & Delivery Notes for WooCommerce] Footers on certain documents only](https://wordpress.org/support/topic/footers-on-certain-documents-only/)
 *  Thread Starter [anewphpcoder](https://wordpress.org/support/users/anewphpcoder/)
 * (@anewphpcoder)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/footers-on-certain-documents-only/#post-14934246)
 * I’ve found the solution to my problem after playing around with the hooks. The
   code is as below
 *     ```
       add_action( 'wcdn_after_page', 'invoice_footer', 10, 1 );
       function invoice_footer(){
   
       	$template = wcdn_get_template_type();
   
       	if ($template == 'invoice'){
       		echo '';}
       	elseif ($template == 'delivery-note'){
       		echo ''; }
       	elseif ($template == 'receipt'){
       		echo '';}
       }
       ```
   
    -  This reply was modified 4 years, 8 months ago by [anewphpcoder](https://wordpress.org/support/users/anewphpcoder/).

Viewing 1 replies (of 1 total)