| Conditions | 3 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | public static function output_shortcode( $post ) { |
||
| 43 | |||
| 44 | if ( ! is_numeric( $post ) ) { |
||
|
|
|||
| 45 | $post = $post->ID; |
||
| 46 | } |
||
| 47 | |||
| 48 | if ( $post == wpinv_get_default_payment_form() ) { |
||
| 49 | echo '—'; |
||
| 50 | return; |
||
| 51 | } |
||
| 52 | |||
| 53 | echo "<input type='text' style='min-width: 220px;' value='[getpaid form=" . absint( $post ) . "]' disabled>"; |
||
| 54 | |||
| 59 |