forked from nextcloud/nextcloud-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathacf.functions.stub.php
6116 lines (6105 loc) · 126 KB
/
acf.functions.stub.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
// class_exists check
/*
* acf_add_loop
*
* alias of acf()->loop->add_loop()
*
* @type function
* @date 6/10/13
* @since 5.0.0
*
* @param n/a
* @return n/a
*/
function acf_add_loop($loop = array()) {
}
/*
* acf_update_loop
*
* alias of acf()->loop->update_loop()
*
* @type function
* @date 6/10/13
* @since 5.0.0
*
* @param n/a
* @return n/a
*/
function acf_update_loop($i = 'active', $key = \null, $value = \null) {
}
/*
* acf_get_loop
*
* alias of acf()->loop->get_loop()
*
* @type function
* @date 6/10/13
* @since 5.0.0
*
* @param n/a
* @return n/a
*/
function acf_get_loop($i = 'active', $key = \null) {
}
/*
* acf_remove_loop
*
* alias of acf()->loop->remove_loop()
*
* @type function
* @date 6/10/13
* @since 5.0.0
*
* @param n/a
* @return n/a
*/
function acf_remove_loop($i = 'active') {
}
// class_exists check
/**
* acf_setup_meta
*
* Adds postmeta to storage.
*
* @date 8/10/18
* @since 5.8.0
* @see ACF_Local_Meta::add() for list of parameters.
*
* @return array
*/
function acf_setup_meta($meta = array(), $post_id = 0, $is_main = \false) {
}
/**
* acf_reset_meta
*
* Removes postmeta to storage.
*
* @date 8/10/18
* @since 5.8.0
* @see ACF_Local_Meta::remove() for list of parameters.
*
* @return void
*/
function acf_reset_meta($post_id = 0) {
}
/*
* acf_updates
*
* The main function responsible for returning the one true acf_updates instance to functions everywhere.
* Use this function like you would a global variable, except without needing to declare the global.
*
* Example: <?php $acf_updates = acf_updates(); ?>
*
* @date 9/4/17
* @since 5.5.12
*
* @param void
* @return object
*/
function acf_updates() {
}
/*
* acf_register_plugin_update
*
* Alias of acf_updates()->add_plugin().
*
* @type function
* @date 12/4/17
* @since 5.5.10
*
* @param array $plugin
* @return void
*/
function acf_register_plugin_update($plugin) {
}
/**
* acf_get_reference
*
* Retrieves the field key for a given field name and post_id.
*
* @date 26/1/18
* @since 5.6.5
*
* @param string $field_name The name of the field. eg 'sub_heading'.
* @param mixed $post_id The post_id of which the value is saved against.
* @return string The field key.
*/
function acf_get_reference($field_name, $post_id) {
}
/**
* Retrieves the value for a given field and post_id.
*
* @date 28/09/13
* @since 5.0.0
*
* @param int|string $post_id The post id.
* @param array $field The field array.
* @return mixed
*/
function acf_get_value($post_id, $field) {
}
/**
* acf_format_value
*
* Returns a formatted version of the provided value.
*
* @date 28/09/13
* @since 5.0.0
*
* @param mixed $value The field value.
* @param (int|string) $post_id The post id.
* @param array $field The field array.
* @return mixed.
*/
function acf_format_value($value, $post_id, $field) {
}
/**
* acf_update_value
*
* Updates the value for a given field and post_id.
*
* @date 28/09/13
* @since 5.0.0
*
* @param mixed $value The new value.
* @param (int|string) $post_id The post id.
* @param array $field The field array.
* @return bool.
*/
function acf_update_value($value, $post_id, $field) {
}
/**
* acf_update_values
*
* Updates an array of values.
*
* @date 26/2/19
* @since 5.7.13
*
* @param array values The array of values.
* @param (int|string) $post_id The post id.
* @return void
*/
function acf_update_values($values, $post_id) {
}
/**
* acf_flush_value_cache
*
* Deletes all cached data for this value.
*
* @date 22/1/19
* @since 5.7.10
*
* @param (int|string) $post_id The post id.
* @param string $field_name The field name.
* @return void
*/
function acf_flush_value_cache($post_id = 0, $field_name = '') {
}
/**
* acf_delete_value
*
* Deletes the value for a given field and post_id.
*
* @date 28/09/13
* @since 5.0.0
*
* @param (int|string) $post_id The post id.
* @param array $field The field array.
* @return bool.
*/
function acf_delete_value($post_id, $field) {
}
/**
* acf_preview_value
*
* Return a human friendly 'preview' for a given field value.
*
* @date 28/09/13
* @since 5.0.0
*
* @param mixed $value The new value.
* @param (int|string) $post_id The post id.
* @param array $field The field array.
* @return bool.
*/
function acf_preview_value($value, $post_id, $field) {
}
/**
* Potentially log an error if a field doesn't exist when we expect it to.
*
* @param array $field An array representing the field that a value was requested for.
* @param string $function The function that noticed the problem.
*
* @return void
*/
function acf_log_invalid_field_notice($field, $function) {
}
// class_exists check
/*
* acf_save_post_revision
*
* This function will copy meta from a post to it's latest revision
*
* @type function
* @date 26/09/2016
* @since 5.4.0
*
* @param $post_id (int)
* @return n/a
*/
function acf_save_post_revision($post_id = 0) {
}
/*
* acf_get_post_latest_revision
*
* This function will return the latest revision for a given post
*
* @type function
* @date 25/06/2016
* @since 5.3.8
*
* @param $post_id (int)
* @return $post_id (int)
*/
function acf_get_post_latest_revision($post_id) {
}
/**
* Returns an array of "ACF only" meta for the given post_id.
*
* @date 9/10/18
* @since 5.8.0
*
* @param mixed $post_id The post_id for this data.
*
* @return array
*/
function acf_get_meta($post_id = 0) {
}
/**
* acf_get_option_meta
*
* Returns an array of meta for the given wp_option name prefix in the same format as get_post_meta().
*
* @date 9/10/18
* @since 5.8.0
*
* @param string $prefix The wp_option name prefix.
* @return array
*/
function acf_get_option_meta($prefix = '') {
}
/**
* Retrieves specific metadata from the database.
*
* @date 16/10/2015
* @since 5.2.3
*
* @param int|string $post_id The post id.
* @param string $name The meta name.
* @param bool $hidden If the meta is hidden (starts with an underscore).
*
* @return mixed
*/
function acf_get_metadata($post_id = 0, $name = '', $hidden = \false) {
}
/**
* Updates metadata in the database.
*
* @date 16/10/2015
* @since 5.2.3
*
* @param int|string $post_id The post id.
* @param string $name The meta name.
* @param mixed $value The meta value.
* @param bool $hidden If the meta is hidden (starts with an underscore).
*
* @return int|bool Meta ID if the key didn't exist, true on successful update, false on failure.
*/
function acf_update_metadata($post_id = 0, $name = '', $value = '', $hidden = \false) {
}
/**
* Deletes metadata from the database.
*
* @date 16/10/2015
* @since 5.2.3
*
* @param int|string $post_id The post id.
* @param string $name The meta name.
* @param bool $hidden If the meta is hidden (starts with an underscore).
*
* @return bool
*/
function acf_delete_metadata($post_id = 0, $name = '', $hidden = \false) {
}
/**
* acf_copy_postmeta
*
* Copies meta from one post to another. Useful for saving and restoring revisions.
*
* @date 25/06/2016
* @since 5.3.8
*
* @param (int|string) $from_post_id The post id to copy from.
* @param (int|string) $to_post_id The post id to paste to.
* @return void
*/
function acf_copy_metadata($from_post_id = 0, $to_post_id = 0) {
}
/**
* acf_copy_postmeta
*
* Copies meta from one post to another. Useful for saving and restoring revisions.
*
* @date 25/06/2016
* @since 5.3.8
* @deprecated 5.7.11
*
* @param int $from_post_id The post id to copy from.
* @param int $to_post_id The post id to paste to.
* @return void
*/
function acf_copy_postmeta($from_post_id = 0, $to_post_id = 0) {
}
/**
* acf_get_meta_field
*
* Returns a field using the provided $id and $post_id parameters.
* Looks for a reference to help loading the correct field via name.
*
* @date 21/1/19
* @since 5.7.10
*
* @param string $key The meta name (field name).
* @param (int|string) $post_id The post_id where this field's value is saved.
* @return (array|false) The field array.
*/
function acf_get_meta_field($key = 0, $post_id = 0) {
}
/**
* acf_get_metaref
*
* Retrieves reference metadata from the database.
*
* @date 16/10/2015
* @since 5.2.3
*
* @param (int|string) $post_id The post id.
* @param string type The reference type (fields|groups).
* @param string $name An optional specific name
* @return mixed
*/
function acf_get_metaref($post_id = 0, $type = 'fields', $name = '') {
}
/**
* acf_update_metaref
*
* Updates reference metadata in the database.
*
* @date 16/10/2015
* @since 5.2.3
*
* @param (int|string) $post_id The post id.
* @param string type The reference type (fields|groups).
* @param array $references An array of references.
* @return (int|bool) Meta ID if the key didn't exist, true on successful update, false on failure.
*/
function acf_update_metaref($post_id = 0, $type = 'fields', $references = array()) {
}
/**
* Returns a WordPress object type.
*
* @date 1/4/20
* @since 5.9.0
*
* @param string $object_type The object type (post, term, user, etc).
* @param string $object_subtype Optional object subtype (post type, taxonomy).
* @return object
*/
function acf_get_object_type($object_type, $object_subtype = '') {
}
/**
* Decodes a post_id value such as 1 or "user_1" into an array containing the type and ID.
*
* @date 25/1/19
* @since 5.7.11
*
* @param (int|string) $post_id The post id.
* @return array
*/
function acf_decode_post_id($post_id = 0) {
}
/**
* Determine the REST base for a post type or taxonomy object. Note that this is not intended for use
* with term or post objects but is, instead, to be used with the underlying WP_Post_Type and WP_Taxonomy
* instances.
*
* @param WP_Post_Type|WP_Taxonomy $type_object
* @return string|null
*/
function acf_get_object_type_rest_base($type_object) {
}
/**
* Extract the ID of a given object/array. This supports all expected types handled by our update_fields() and
* load_fields() callbacks.
*
* @param WP_Post|WP_User|WP_Term|WP_Comment|array $object
* @return int|mixed|null
*/
function acf_get_object_id($object) {
}
// class_exists check
/*
* Public functions
*
* alias of acf()->validation->function()
*
* @type function
* @date 6/10/13
* @since 5.0.0
*
* @param n/a
* @return n/a
*/
function acf_add_validation_error($input, $message = '') {
}
function acf_get_validation_errors() {
}
function acf_get_validation_error() {
}
function acf_reset_validation_errors() {
}
/*
* acf_validate_save_post
*
* This function will validate $_POST data and add errors
*
* @type function
* @date 25/11/2013
* @since 5.0.0
*
* @param $show_errors (boolean) if true, errors will be shown via a wp_die screen
* @return (boolean)
*/
function acf_validate_save_post($show_errors = \false) {
}
/*
* acf_validate_values
*
* This function will validate an array of field values
*
* @type function
* @date 6/10/13
* @since 5.0.0
*
* @param values (array)
* @param $input_prefix (string)
* @return n/a
*/
function acf_validate_values($values, $input_prefix = '') {
}
/*
* acf_validate_value
*
* This function will validate a field's value
*
* @type function
* @date 6/10/13
* @since 5.0.0
*
* @param n/a
* @return n/a
*/
function acf_validate_value($value, $field, $input) {
}
// class_exists check
/*
* acf_register_admin_tool
*
* alias of acf()->admin_tools->register_tool()
*
* @type function
* @date 31/5/17
* @since 5.6.0
*
* @param n/a
* @return n/a
*/
function acf_register_admin_tool($class) {
}
/*
* acf_get_admin_tools_url
*
* This function will return the admin URL to the tools page
*
* @type function
* @date 31/5/17
* @since 5.6.0
*
* @param n/a
* @return n/a
*/
function acf_get_admin_tools_url() {
}
/*
* acf_get_admin_tool_url
*
* This function will return the admin URL to the tools page
*
* @type function
* @date 31/5/17
* @since 5.6.0
*
* @param n/a
* @return n/a
*/
function acf_get_admin_tool_url($tool = '') {
}
// class_exists check
/**
* acf_new_admin_notice
*
* Instantiates and returns a new model.
*
* @date 23/12/18
* @since 5.8.0
*
* @param array $data Optional data to set.
* @return ACF_Admin_Notice
*/
function acf_new_admin_notice($data = \false) {
}
/**
* acf_render_admin_notices
*
* Renders all admin notices HTML.
*
* @date 10/1/19
* @since 5.7.10
*
* @param void
* @return void
*/
function acf_render_admin_notices() {
}
/**
* acf_add_admin_notice
*
* Creates and returns a new notice.
*
* @date 17/10/13
* @since 5.0.0
*
* @param string $text The admin notice text.
* @param string $class The type of notice (warning, error, success, info).
* @param string $dismissable Is this notification dismissible (default true) (since 5.11.0)
* @return ACF_Admin_Notice
*/
function acf_add_admin_notice($text = '', $type = 'info', $dismissible = \true) {
}
/**
* acf_get_users
*
* Similar to the get_users() function but with extra functionality.
*
* @date 9/1/19
* @since 5.7.10
*
* @param array $args The query args.
* @return array
*/
function acf_get_users($args = array()) {
}
/**
* acf_get_user_result
*
* Returns a result containing "id" and "text" for the given user.
*
* @date 21/5/19
* @since 5.8.1
*
* @param WP_User $user The user object.
* @return array
*/
function acf_get_user_result($user) {
}
/**
* acf_get_user_role_labels
*
* Returns an array of user roles in the format "name => label".
*
* @date 20/5/19
* @since 5.8.1
*
* @param array $roles A specific array of roles.
* @return array
*/
function acf_get_user_role_labels($roles = array()) {
}
/**
* acf_allow_unfiltered_html
*
* Returns true if the current user is allowed to save unfiltered HTML.
*
* @date 9/1/19
* @since 5.7.10
*
* @param void
* @return bool
*/
function acf_allow_unfiltered_html() {
}
/**
* acf_get_field
*
* Retrieves a field for the given identifier.
*
* @date 17/1/19
* @since 5.7.10
*
* @param (int|string) $id The field ID, key or name.
* @return (array|false) The field array.
*/
function acf_get_field($id = 0) {
}
/**
* acf_get_raw_field
*
* Retrieves raw field data for the given identifier.
*
* @date 18/1/19
* @since 5.7.10
*
* @param (int|string) $id The field ID, key or name.
* @return (array|false) The field array.
*/
function acf_get_raw_field($id = 0) {
}
/**
* acf_get_field_post
*
* Retrieves the field's WP_Post object.
*
* @date 18/1/19
* @since 5.7.10
*
* @param (int|string) $id The field ID, key or name.
* @return (array|false) The field array.
*/
function acf_get_field_post($id = 0) {
}
/**
* acf_is_field_key
*
* Returns true if the given identifier is a field key.
*
* @date 6/12/2013
* @since 5.0.0
*
* @param string $id The identifier.
* @return bool
*/
function acf_is_field_key($id = '') {
}
/**
* acf_validate_field
*
* Ensures the given field valid.
*
* @date 18/1/19
* @since 5.7.10
*
* @param array $field The field array.
* @return array
*/
function acf_validate_field($field = array()) {
}
/**
* acf_get_valid_field
*
* Ensures the given field valid.
*
* @date 28/09/13
* @since 5.0.0
*
* @param array $field The field array.
* @return array
*/
function acf_get_valid_field($field = \false) {
}
/**
* acf_translate_field
*
* Translates a field's settings.
*
* @date 8/03/2016
* @since 5.3.2
*
* @param array $field The field array.
* @return array
*/
function acf_translate_field($field = array()) {
}
/**
* acf_get_fields
*
* Returns and array of fields for the given $parent.
*
* @date 30/09/13
* @since 5.0.0
*
* @param (int|string|array) $parent The field group or field settings. Also accepts the field group ID or key.
* @return array
*/
function acf_get_fields($parent) {
}
/**
* acf_get_raw_fields
*
* Returns and array of raw field data for the given parent id.
*
* @date 18/1/19
* @since 5.7.10
*
* @param int $id The field group or field id.
* @return array
*/
function acf_get_raw_fields($id = 0) {
}
/**
* acf_get_field_count
*
* Return the number of fields for the given field group.
*
* @date 17/10/13
* @since 5.0.0
*
* @param array $parent The field group or field array.
* @return int
*/
function acf_get_field_count($parent) {
}
/**
* acf_clone_field
*
* Allows customization to a field when it is cloned. Used by the clone field.
*
* @date 8/03/2016
* @since 5.3.2
*
* @param array $field The field being cloned.
* @param array $clone_field The clone field.
* @return array
*/
function acf_clone_field($field, $clone_field) {
}
/**
* acf_prepare_field
*
* Prepare a field for input.
*
* @date 20/1/19
* @since 5.7.10
*
* @param array $field The field array.
* @return array
*/
function acf_prepare_field($field) {
}
/**
* acf_render_fields
*
* Renders an array of fields. Also loads the field's value.
*
* @date 8/10/13
* @since 5.0.0
* @since 5.6.9 Changed parameter order.
*
* @param array $fields An array of fields.
* @param (int|string) $post_id The post ID to load values from.
* @param string $element The wrapping element type.
* @param string $instruction The instruction render position (label|field).
* @return void
*/
function acf_render_fields($fields, $post_id = 0, $el = 'div', $instruction = 'label') {
}
/**
* acf_render_field_wrap
*
* Render the wrapping element for a given field.
*
* @date 28/09/13
* @since 5.0.0
*
* @param array $field The field array.
* @param string $element The wrapping element type.
* @param string $instruction The instruction render position (label|field).
* @return void
*/
function acf_render_field_wrap($field, $element = 'div', $instruction = 'label') {
}
/**
* acf_render_field
*
* Render the input element for a given field.
*
* @date 21/1/19
* @since 5.7.10
*
* @param array $field The field array.
* @return void
*/
function acf_render_field($field) {
}
/**
* acf_render_field_label
*
* Renders the field's label.
*
* @date 19/9/17
* @since 5.6.3
*
* @param array $field The field array.
* @return void
*/
function acf_render_field_label($field) {
}
/**
* acf_get_field_label
*
* Returns the field's label with appropriate required label.
*
* @date 4/11/2013
* @since 5.0.0
*
* @param array $field The field array.
* @param string $context The output context (admin).
* @return void
*/
function acf_get_field_label($field, $context = '') {
}
/**
* acf_render_field_instructions
*
* Renders the field's instructions.
*
* @date 19/9/17
* @since 5.6.3
*
* @param array $field The field array.
* @return void
*/
function acf_render_field_instructions($field) {
}
/**
* acf_render_field_setting
*
* Renders a field setting used in the admin edit screen.
*
* @date 21/1/19
* @since 5.7.10
*
* @param array $field The field array.
* @param array $setting The settings field array.
* @param bool $global Whether this setting is a global or field type specific one.
* @return void
*/
function acf_render_field_setting($field, $setting, $global = \false) {
}
/**
* acf_update_field
*
* Updates a field in the database.
*
* @date 21/1/19
* @since 5.7.10
*
* @param array $field The field array.
* @param array $specific An array of specific field attributes to update.
* @return void
*/
function acf_update_field($field, $specific = array()) {
}
/**
* _acf_apply_unique_field_slug
*
* Allows full control over 'acf-field' slugs.
*
* @date 21/1/19
* @since 5.7.10
*
* @param string $slug The post slug.
* @param int $post_ID Post ID.
* @param string $post_status The post status.
* @param string $post_type Post type.
* @param int $post_parent Post parent ID
* @param string $original_slug The original post slug.
*/
function _acf_apply_unique_field_slug($slug, $post_ID, $post_status, $post_type, $post_parent, $original_slug) {
}
/**
* acf_flush_field_cache
*
* Deletes all caches for this field.
*
* @date 22/1/19
* @since 5.7.10
*
* @param array $field The field array.
* @return void
*/
function acf_flush_field_cache($field) {
}
/**
* acf_delete_field
*
* Deletes a field from the database.
*
* @date 21/1/19
* @since 5.7.10
*
* @param (int|string) $id The field ID, key or name.
* @return bool True if field was deleted.
*/
function acf_delete_field($id = 0) {
}
/**
* acf_trash_field
*
* Trashes a field from the database.
*
* @date 2/10/13
* @since 5.0.0
*
* @param (int|string) $id The field ID, key or name.
* @return bool True if field was trashed.
*/
function acf_trash_field($id = 0) {
}
/**
* acf_untrash_field
*
* Restores a field from the trash.
*
* @date 2/10/13
* @since 5.0.0
*
* @param (int|string) $id The field ID, key or name.
* @return bool True if field was trashed.
*/
function acf_untrash_field($id = 0) {
}
/**
* Filter callback which returns the previous post_status instead of "draft" for the "acf-field" post type.
*
* Prior to WordPress 5.6.0, this filter was not needed as restored posts were always assigned their original status.
*
* @since 5.9.5
*