PluginProbe
Order Tracking – WordPress Status Tracking Plugin / 3.2.2
Order Tracking – WordPress Status Tracking Plugin v3.2.2
3.5.4 3.5.3 3.5.2 3.5.1 3.5.0 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.2.5 3.3.0 3.3.1 3.3.10 3.3.11 3.3.12 3.3.13 3.3.14 3.3.15 All 235 releases
order-tracking / views / View.AdminCustomerForm.class.php

View.AdminCustomerForm.class.php in Order Tracking – WordPress Status Tracking Plugin 3.2.2, at views/View.AdminCustomerForm.class.php

41 lines 841 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Class to display a customer add/edit form in the admin.
5 *
6 * @since 3.0.0
7 */
8 class ewdotpAdminCustomerFormView extends ewdotpViewAdmin {
9
10 /**
11 * Render the view and enqueue required stylesheets
12 * @since 3.0.0
13 */
14 public function render() {
15 global $ewd_otp_controller;
16
17 ob_start();
18
19 $template = $this->find_template( 'admin-customer-form' );
20
21 if ( $template ) {
22 include( $template );
23 }
24
25 $output = ob_get_clean();
26
27 return apply_filters( 'ewd_otp_admin_customer_output', $output, $this );
28 }
29
30 /**
31 * Returns the value for a specified custom field.
32 *
33 * @since 3.0.0
34 */
35 public function set_custom_field_value( $custom_field ) {
36 global $ewd_otp_controller;
37
38 return ! empty( $this->customer->custom_fields[ $custom_field->id ] ) ? $this->customer->custom_fields[ $custom_field->id ] : '';
39 }
40 }
41