|
@@ 70-80 (lines=11) @@
|
| 67 |
|
do_action('wpinv_invoice_display_right_actions', $invoice); |
| 68 |
|
} |
| 69 |
|
|
| 70 |
|
function wpinv_before_invoice_content( $content ) { |
| 71 |
|
global $post; |
| 72 |
|
|
| 73 |
|
if ( !empty( $post ) && $post->post_type == 'wpi_invoice' && is_singular( 'wpi_invoice' ) && is_main_query() ) { |
| 74 |
|
ob_start(); |
| 75 |
|
do_action( 'wpinv_before_invoice_content', $post->ID ); |
| 76 |
|
$content = ob_get_clean() . $content; |
| 77 |
|
} |
| 78 |
|
|
| 79 |
|
return $content; |
| 80 |
|
} |
| 81 |
|
add_filter( 'the_content', 'wpinv_before_invoice_content' ); |
| 82 |
|
|
| 83 |
|
function wpinv_after_invoice_content( $content ) { |
|
@@ 83-93 (lines=11) @@
|
| 80 |
|
} |
| 81 |
|
add_filter( 'the_content', 'wpinv_before_invoice_content' ); |
| 82 |
|
|
| 83 |
|
function wpinv_after_invoice_content( $content ) { |
| 84 |
|
global $post; |
| 85 |
|
|
| 86 |
|
if ( !empty( $post ) && $post->post_type == 'wpi_invoice' && is_singular( 'wpi_invoice' ) && is_main_query() ) { |
| 87 |
|
ob_start(); |
| 88 |
|
do_action( 'wpinv_after_invoice_content', $post->ID ); |
| 89 |
|
$content .= ob_get_clean(); |
| 90 |
|
} |
| 91 |
|
|
| 92 |
|
return $content; |
| 93 |
|
} |
| 94 |
|
add_filter( 'the_content', 'wpinv_after_invoice_content' ); |
| 95 |
|
|
| 96 |
|
function wpinv_get_templates_dir() { |