| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function field_options( $field_options, $template_id, $field_id, $context, $input_type, $form_id ) { |
||
| 30 | |||
| 31 | if( 'edit' === $context ) { |
||
| 32 | return $field_options; |
||
| 33 | } |
||
| 34 | |||
| 35 | if ( 'single' === $context ) { |
||
| 36 | unset( $field_options['new_window'] ); |
||
| 37 | } |
||
| 38 | |||
| 39 | return $field_options; |
||
| 40 | } |
||
| 41 | } |
||
| 44 |