| @@ 102-114 (lines=13) @@ | ||
| 99 | ||
| 100 | ||
| 101 | // create dummy field |
|
| 102 | if( !$field ) { |
|
| 103 | ||
| 104 | $field = acf_get_valid_field(array( |
|
| 105 | 'name' => $selector, |
|
| 106 | 'key' => '', |
|
| 107 | 'type' => '', |
|
| 108 | )); |
|
| 109 | ||
| 110 | ||
| 111 | // prevent formatting |
|
| 112 | $format_value = false; |
|
| 113 | ||
| 114 | } |
|
| 115 | ||
| 116 | ||
| 117 | // get value for field |
|
| @@ 1444-1451 (lines=8) @@ | ||
| 1441 | ||
| 1442 | ||
| 1443 | // create dummy field |
|
| 1444 | if( !$field ) |
|
| 1445 | { |
|
| 1446 | $field = acf_get_valid_field(array( |
|
| 1447 | 'name' => $selector, |
|
| 1448 | 'key' => '', |
|
| 1449 | 'type' => '', |
|
| 1450 | )); |
|
| 1451 | } |
|
| 1452 | ||
| 1453 | ||
| 1454 | // save |
|
| @@ 1501-1509 (lines=9) @@ | ||
| 1498 | ||
| 1499 | ||
| 1500 | // create dummy field |
|
| 1501 | if( !$field ) { |
|
| 1502 | ||
| 1503 | $field = acf_get_valid_field(array( |
|
| 1504 | 'name' => $selector, |
|
| 1505 | 'key' => '', |
|
| 1506 | 'type' => '', |
|
| 1507 | )); |
|
| 1508 | ||
| 1509 | } |
|
| 1510 | ||
| 1511 | ||
| 1512 | // update name |
|