@prefix sioc: <http://rdfs.org/sioc/ns#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix content: <http://purl.org/rss/1.0/modules/content/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

<https://lhero.org/?post_type=lh-portfolio&#038;p=146950>
  a sioc:Post ;
  dc:title "Filters Reference" ;
  dcterms:identifier 146950 ;
  dc:modified "2026-09-01T16:36:08Z"^^xsd:dateTime ;
  dc:created "2026-09-01T16:36:08Z"^^xsd:dateTime ;
  sioc:link <https://lhero.org/portfolio/lh-woocommerce-invoicing/filters-reference/> ;
  sioc:has_creator <https://lhero.org/author/1015845/#account> ;
  sioc:has_container <https://lhero.org/#posts> ;
  content:encoded """
<p class="wp-block-paragraph">All filters below are optional; the plugin has sensible defaults or renders nothing if a filter that controls optional content isn&#8217;t hooked.</p>



<h3 class="wp-block-heading"><code>lh_woocommerce_pdf_invoicing_init_plugin</code></h3>



<p class="wp-block-paragraph">Controls whether the plugin initialises. Return <code>false</code> to disable.</p>



<pre class="wp-block-code"><code>add_filter( 'lh_woocommerce_pdf_invoicing_init_plugin', '__return_false' );</code></pre>



<h3 class="wp-block-heading"><code>lh_woocommerce_pdf_invoicing_invoice_filename</code></h3>



<p class="wp-block-paragraph">Override the downloaded filename.</p>



<pre class="wp-block-code"><code>add_filter( 'lh_woocommerce_pdf_invoicing_invoice_filename', function ( $filename, $order ) {
    return 'my-invoice-' . $order-&gt;get_order_number() . '.pdf';
}, 10, 2 );</code></pre>



<h3 class="wp-block-heading"><code>lh_woocommerce_pdf_invoicing_template_path</code></h3>



<p class="wp-block-paragraph">Override the invoice HTML template path.</p>



<pre class="wp-block-code"><code>add_filter( 'lh_woocommerce_pdf_invoicing_template_path', function ( $path ) {
    return get_stylesheet_directory() . '/invoice-template.php';
} );</code></pre>



<h3 class="wp-block-heading"><code>lh_woocommerce_pdf_invoicing_paper_size</code></h3>



<p class="wp-block-paragraph">Override the paper size (default <code>A4</code>).</p>



<pre class="wp-block-code"><code>add_filter( 'lh_woocommerce_pdf_invoicing_paper_size', fn() =&gt; 'letter' );</code></pre>



<h3 class="wp-block-heading"><code>lh_woocommerce_pdf_invoicing_paper_orientation</code></h3>



<p class="wp-block-paragraph">Override the paper orientation (default <code>portrait</code>).</p>



<pre class="wp-block-code"><code>add_filter( 'lh_woocommerce_pdf_invoicing_paper_orientation', fn() =&gt; 'landscape' );</code></pre>



<h3 class="wp-block-heading"><code>lh_woocommerce_pdf_invoicing_dompdf_remote_enabled</code></h3>



<p class="wp-block-paragraph">Control whether DOMPDF fetches remote images (default <code>true</code>).</p>



<pre class="wp-block-code"><code>add_filter( 'lh_woocommerce_pdf_invoicing_dompdf_remote_enabled', '__return_false' );</code></pre>



<h3 class="wp-block-heading"><code>lh_woocommerce_pdf_invoicing_logo_url</code></h3>



<p class="wp-block-paragraph">Override the logo image URL used in the invoice header. Defaults to the site&#8217;s <code>custom_logo</code> theme mod.</p>



<pre class="wp-block-code"><code>add_filter( 'lh_woocommerce_pdf_invoicing_logo_url', function ( $url ) {
    return 'https://example.com/my-logo.png';
} );</code></pre>



<h3 class="wp-block-heading"><code>lh_woocommerce_pdf_invoicing_company_number</code> / <code>_company_number_label</code></h3>



<p class="wp-block-paragraph">Return an organisation/company registration number to display in the order details table (empty by default &#8212; nothing renders if not hooked), plus its label (default <code>Company Number</code>).</p>



<pre class="wp-block-code"><code>add_filter( 'lh_woocommerce_pdf_invoicing_company_number', fn() =&gt; 'A12345' );
add_filter( 'lh_woocommerce_pdf_invoicing_company_number_label', fn() =&gt; 'Association Number' );</code></pre>



<h3 class="wp-block-heading"><code>lh_woocommerce_pdf_invoicing_vat_number</code> / <code>_vat_number_label</code></h3>



<p class="wp-block-paragraph">Return a VAT/ABN/tax number to display in the order details table (empty by default), plus its label (default <code>ABN</code>).</p>



<pre class="wp-block-code"><code>add_filter( 'lh_woocommerce_pdf_invoicing_vat_number', fn() =&gt; '12 345 678 901' );
add_filter( 'lh_woocommerce_pdf_invoicing_vat_number_label', fn() =&gt; 'ABN' );</code></pre>



<h3 class="wp-block-heading"><code>lh_woocommerce_pdf_invoicing_bank_details_html</code></h3>



<p class="wp-block-paragraph">Override or suppress the bank details block shown on unpaid orders. Auto-populated from WooCommerce BACS settings if available. Return an empty string to suppress.</p>



<pre class="wp-block-code"><code>add_filter( 'lh_woocommerce_pdf_invoicing_bank_details_html', function ( $html, $order ) {
    return '&lt;h2&gt;Pay Us&lt;/h2&gt;&lt;p&gt;BSB: 000-000 Account: 12345678&lt;/p&gt;';
}, 10, 2 );</code></pre>



<h3 class="wp-block-heading"><code>lh_woocommerce_pdf_invoicing_disclaimer</code></h3>



<p class="wp-block-paragraph">Return a disclaimer string to display at the bottom of the invoice, above the footer (empty by default).</p>



<pre class="wp-block-code"><code>add_filter( 'lh_woocommerce_pdf_invoicing_disclaimer', fn() =&gt; 'Princes Park Touch is an incorporated association registered in Victoria. It is not registered for GST.' );</code></pre>
"""^^rdf:XMLLiteral ;
  sioc:content """
All filters below are optional; the plugin has sensible defaults or renders nothing if a filter that controls optional content isn&#8217;t hooked.



lh_woocommerce_pdf_invoicing_init_plugin



Controls whether the plugin initialises. Return false to disable.



add_filter( 'lh_woocommerce_pdf_invoicing_init_plugin', '__return_false' );



lh_woocommerce_pdf_invoicing_invoice_filename



Override the downloaded filename.



add_filter( 'lh_woocommerce_pdf_invoicing_invoice_filename', function ( $filename, $order ) {
    return 'my-invoice-' . $order-&gt;get_order_number() . '.pdf';
}, 10, 2 );



lh_woocommerce_pdf_invoicing_template_path



Override the invoice HTML template path.



add_filter( 'lh_woocommerce_pdf_invoicing_template_path', function ( $path ) {
    return get_stylesheet_directory() . '/invoice-template.php';
} );



lh_woocommerce_pdf_invoicing_paper_size



Override the paper size (default A4).



add_filter( 'lh_woocommerce_pdf_invoicing_paper_size', fn() =&gt; 'letter' );



lh_woocommerce_pdf_invoicing_paper_orientation



Override the paper orientation (default portrait).



add_filter( 'lh_woocommerce_pdf_invoicing_paper_orientation', fn() =&gt; 'landscape' );



lh_woocommerce_pdf_invoicing_dompdf_remote_enabled



Control whether DOMPDF fetches remote images (default true).



add_filter( 'lh_woocommerce_pdf_invoicing_dompdf_remote_enabled', '__return_false' );



lh_woocommerce_pdf_invoicing_logo_url



Override the logo image URL used in the invoice header. Defaults to the site&#8217;s custom_logo theme mod.



add_filter( 'lh_woocommerce_pdf_invoicing_logo_url', function ( $url ) {
    return 'https://example.com/my-logo.png';
} );



lh_woocommerce_pdf_invoicing_company_number / _company_number_label



Return an organisation/company registration number to display in the order details table (empty by default &#8212; nothing renders if not hooked), plus its label (default Company Number).



add_filter( 'lh_woocommerce_pdf_invoicing_company_number', fn() =&gt; 'A12345' );
add_filter( 'lh_woocommerce_pdf_invoicing_company_number_label', fn() =&gt; 'Association Number' );



lh_woocommerce_pdf_invoicing_vat_number / _vat_number_label



Return a VAT/ABN/tax number to display in the order details table (empty by default), plus its label (default ABN).



add_filter( 'lh_woocommerce_pdf_invoicing_vat_number', fn() =&gt; '12 345 678 901' );
add_filter( 'lh_woocommerce_pdf_invoicing_vat_number_label', fn() =&gt; 'ABN' );



lh_woocommerce_pdf_invoicing_bank_details_html



Override or suppress the bank details block shown on unpaid orders. Auto-populated from WooCommerce BACS settings if available. Return an empty string to suppress.



add_filter( 'lh_woocommerce_pdf_invoicing_bank_details_html', function ( $html, $order ) {
    return '&lt;h2&gt;Pay Us&lt;/h2&gt;&lt;p&gt;BSB: 000-000 Account: 12345678&lt;/p&gt;';
}, 10, 2 );



lh_woocommerce_pdf_invoicing_disclaimer



Return a disclaimer string to display at the bottom of the invoice, above the footer (empty by default).



add_filter( 'lh_woocommerce_pdf_invoicing_disclaimer', fn() =&gt; 'Princes Park Touch is an incorporated association registered in Victoria. It is not registered for GST.' );
""" ;
  sioc:topic <https://lhero.org/lh_portfolio-type/doc-section/>, <https://lhero.org/?taxonomy=author&term=cap-1015845> .

<https://lhero.org/author/1015845/#account> rdfs:seeAlso <https://lhero.org/author/1015845/?feed=lhrdf&format=turtle> .
<https://lhero.org/lh_portfolio-type/doc-section/> rdfs:seeAlso <https://lhero.org/lh_portfolio-type/doc-section/?feed=lhrdf&format=turtle> .
<https://lhero.org/?taxonomy=author&term=cap-1015845> rdfs:seeAlso <https://lhero.org/?taxonomy=author&term=cap-1015845&feed=lhrdf&format=turtle> .
