learndash_purchase_invoice_pdf( array $pdf_content = array() )
Converts purchase invoice content to PDF.
Description #
Parameters #
- $pdf_content
-
(array) (Optional) Array of data for generating the PDF template.
Default value: array()
Return #
(array<mixed>) Generated filename and path.
Source #
Changelog #
Version | Description |
---|---|
4.2.0 | Introduced. |
Related #
Namespace #
@package #
Uses #
Uses | Description |
---|---|
includes/payments/ld-purchase-invoice-functions.php: learndash_purchase_invoice_fields |
Fields displayed at top of purchase invoice PDF. |
includes/payments/ld-purchase-invoice-functions.php: learndash_purchase_invoice_logo_params |
Filters logo parameters in a purchase_invoice pdf. |
includes/payments/ld-purchase-invoice-functions.php: learndash_purchase_invoice_font |
Filters font used in the purchase invoice PDF. |
includes/payments/ld-purchase-invoice-functions.php: learndash_purchase_invoice_font_size |
Filters font size used in the purchase invoice PDF. |
includes/payments/ld-purchase-invoice-functions.php: learndash_purchase_invoice_filepath () |
Generates file path for purchase invoice PDF |
includes/payments/ld-purchase-invoice-functions.php: learndash_purchase_invoice_filename () |
Generates file name for purchase invoice PDF |
includes/payments/ld-purchase-invoice-functions.php: learndash_purchase_invoice_content_write_cell_after |
Fires after the purchase_invoice content is added to the PDF. |
includes/payments/ld-purchase-invoice-functions.php: learndash_purchase_invoice_pdf_username |
Filters username of the user to be used in creating purchase_invoice PDF. |
includes/payments/ld-purchase-invoice-functions.php: learndash_purchase_invoice_content |
Filters purchase_invoice content after all processing. |
includes/payments/ld-purchase-invoice-functions.php: learndash_purchase_invoice_params |
Filters purchase_invoice tcpdf parameters. |
includes/payments/ld-purchase-invoice-functions.php: learndash_purchase_invoice_created |
Fires after creating purchase_invoice |
includes/payments/ld-purchase-invoice-functions.php: learndash_purchase_invoice_pdf_creator |
Filters the value of pdf creator. |
includes/payments/ld-purchase-invoice-functions.php: learndash_purchase_invoice_pdf_author |
Filters the name of the pdf author. |
includes/payments/ld-purchase-invoice-functions.php: learndash_purchase_invoice_pdf_title |
Filters the title of the pdf. |
includes/payments/ld-purchase-invoice-functions.php: learndash_purchase_invoice_pdf_subject |
Filters the subject of the pdf. |
includes/payments/ld-purchase-invoice-functions.php: learndash_purchase_invoice_pdf_keywords |
Filters the pdf keywords. |
includes/payments/ld-purchase-invoice-functions.php: learndash_purchase_invoice_after |
Fires after setting purchase_invoice pdf data. |
includes/payments/ld-purchase-invoice-functions.php: learndash_purchase_invoice_thumbnail_processing_start |
Fires when thumbnail image processing starts. |
includes/payments/ld-purchase-invoice-functions.php: learndash_purchase_invoice_thumbnail_before |
Fires before the thumbnail image is added to the PDF. |
includes/payments/ld-purchase-invoice-functions.php: learndash_purchase_invoice_thumbnail_after |
Fires after the thumbnail image is added to the PDF. |
includes/payments/ld-purchase-invoice-functions.php: learndash_purchase_invoice_thumbnail_processing_end |
Fires when thumbnail image processing ends. |
includes/payments/ld-purchase-invoice-functions.php: learndash_purchase_invoice_content_write_cell_before |
Fires before the purchase_invoice content is added to the PDF. |
includes/payments/ld-purchase-invoice-functions.php: learndash_purchase_invoice_content_write_cell_args |
Filters the parameters passed to the TCPDF writeHTMLCell() function. |
includes/payments/ld-payments-functions.php: learndash_get_price_formatted () |
Gets the price formatted based on the LearnDash global currency configuration. |
includes/payments/ld-payments-functions.php: learndash_get_grammatical_number_label_for_interval () |
Get the singular or plural label for recurring payment intervals |
Used By #
Used By | Description |
---|---|
includes/payments/ld-purchase-invoice-functions.php: learndash_generate_purchase_invoice () |
Generate PDF purchase invoice. |
includes/deprecated/4.5.0/functions.php: learndash_send_purchase_invoice_email () |
Sends the course/group purchase invoice email |