Function Reference: geodir_payment_template_loader
Summary
This function has not been documented yet.
Source Code
function geodir_payment_template_loader( $template ) { if ( geodir_payment_is_page( 'checkout' ) ) { $template = geodir_payment_locate_template( 'checkout' ); if ( !$template ) { $template = GEODIR_PAYMENT_MANAGER_PATH . '/geodir-payment-templates/checkout.php'; } return $template = apply_filters( 'geodir_template_checkout', $template ); } else if ( geodir_payment_is_page( 'invoices' ) ) { if ( geodir_payment_is_page( 'invoice' ) ) { $template = geodir_payment_locate_template( 'invoice' ); if ( !$template ) { $template = GEODIR_PAYMENT_MANAGER_PATH . '/geodir-payment-templates/invoice.php'; } $template = apply_filters( 'geodir_template_invoice_detail', $template ); } else { $template = geodir_payment_locate_template( 'invoices' ); if ( !$template ) { $template = GEODIR_PAYMENT_MANAGER_PATH . '/geodir-payment-templates/invoices.php'; } $template = apply_filters( 'geodir_template_invoices', $template ); } } return $template; }