@@ -194,6 +194,9 @@ |
||
| 194 | 194 | return apply_filters( 'wpinv_is_tax_exclusive', $ret, $item_id ); |
| 195 | 195 | } |
| 196 | 196 | |
| 197 | +/** |
|
| 198 | + * @return integer |
|
| 199 | + */ |
|
| 197 | 200 | function wpinv_currency_decimal_filter( $decimals = 2 ) { |
| 198 | 201 | $currency = wpinv_get_currency(); |
| 199 | 202 | |
@@ -136,6 +136,9 @@ discard block |
||
| 136 | 136 | do_action( 'wpinv_after_template_part', $template_name, $template_path, $located, $args ); |
| 137 | 137 | } |
| 138 | 138 | |
| 139 | +/** |
|
| 140 | + * @param string $template_name |
|
| 141 | + */ |
|
| 139 | 142 | function wpinv_get_template_html( $template_name, $args = array(), $template_path = '', $default_path = '' ) { |
| 140 | 143 | ob_start(); |
| 141 | 144 | wpinv_get_template( $template_name, $args, $template_path, $default_path ); |
@@ -168,6 +171,10 @@ discard block |
||
| 168 | 171 | return apply_filters( 'wpinv_locate_template', $template, $template_name, $template_path ); |
| 169 | 172 | } |
| 170 | 173 | |
| 174 | +/** |
|
| 175 | + * @param string $slug |
|
| 176 | + * @param boolean $name |
|
| 177 | + */ |
|
| 171 | 178 | function wpinv_get_template_part( $slug, $name = null, $load = true ) { |
| 172 | 179 | do_action( 'get_template_part_' . $slug, $slug, $name ); |
| 173 | 180 | |
@@ -867,6 +874,9 @@ discard block |
||
| 867 | 874 | return apply_filters( 'wpinv_get_watermark', $output, $id ); |
| 868 | 875 | } |
| 869 | 876 | |
| 877 | +/** |
|
| 878 | + * @param integer $id |
|
| 879 | + */ |
|
| 870 | 880 | function wpinv_get_watermark( $id ) { |
| 871 | 881 | if ( !$id > 0 ) { |
| 872 | 882 | return NULL; |
@@ -161,6 +161,9 @@ |
||
| 161 | 161 | wp_redirect( $redirect_to ); |
| 162 | 162 | } |
| 163 | 163 | |
| 164 | +/** |
|
| 165 | + * @param integer $user_id |
|
| 166 | + */ |
|
| 164 | 167 | function wpinv_login_user( $user_id ) { |
| 165 | 168 | if ( is_user_logged_in() ) { |
| 166 | 169 | return true; |