| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 16 | function field_options( $field_options, $template_id, $field_id, $context, $input_type ) { |
||
|
|
|||
| 17 | |||
| 18 | if( 'edit' === $context ) { |
||
| 19 | return $field_options; |
||
| 20 | } |
||
| 21 | |||
| 22 | $this->add_field_support('link_to_post', $field_options ); |
||
| 23 | |||
| 24 | $this->add_field_support('dynamic_data', $field_options ); |
||
| 25 | |||
| 26 | return $field_options; |
||
| 27 | } |
||
| 28 | |||
| 32 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.