@@ -395,7 +395,7 @@ acf_get_posts
395
395
_ acf_query_remove_post_type
396
396
397
397
* This function will remove the 'wp_posts.post_type' WHERE clause completely
398
- When using 'post__ in', this clause is unneccessary and slow.
398
+ When using 'post__ in', this clause is unnecessary and slow.
399
399
* @since ACF 5.1.5
400
400
* @param $sql (string)
401
401
* @return $sql
@@ -494,8 +494,8 @@ acf_encode_choices
494
494
acf_str_replace
495
495
496
496
* This function will replace an array of strings much like str_replace
497
- The difference is the extra logic to avoid replacing a string that has alread been replaced
498
- This is very useful for replacing date characters as they overlap with eachother
497
+ The difference is the extra logic to avoid replacing a string that has already been replaced
498
+ This is very useful for replacing date characters as they overlap with each other
499
499
* @since ACF 5.3.8
500
500
* @param $post_id (int)
501
501
* @return $post_id (int)
@@ -504,7 +504,7 @@ This is very useful for replacing date characters as they overlap with eachother
504
504
505
505
acf_split_date_time
506
506
507
- * This function will split a format string into seperate date and time
507
+ * This function will split a format string into separate date and time
508
508
* @since ACF 5.3.8
509
509
* @param $date_time (string)
510
510
* @return $formats (array)
@@ -513,7 +513,7 @@ acf_split_date_time
513
513
514
514
acf_convert_date_to_php
515
515
516
- * This fucntion converts a date format string from JS to PHP
516
+ * This function converts a date format string from JS to PHP
517
517
* @since ACF 5.0.0
518
518
* @param $date (string)
519
519
* @return (string)
@@ -522,7 +522,7 @@ acf_convert_date_to_php
522
522
523
523
acf_convert_date_to_js
524
524
525
- * This fucntion converts a date format string from PHP to JS
525
+ * This function converts a date format string from PHP to JS
526
526
* @since ACF 5.0.0
527
527
* @param $date (string)
528
528
* @return (string)
@@ -531,7 +531,7 @@ acf_convert_date_to_js
531
531
532
532
acf_convert_time_to_php
533
533
534
- * This fucntion converts a time format string from JS to PHP
534
+ * This function converts a time format string from JS to PHP
535
535
* @since ACF 5.0.0
536
536
* @param $time (string)
537
537
* @return (string)
@@ -540,7 +540,7 @@ acf_convert_time_to_php
540
540
541
541
acf_convert_time_to_js
542
542
543
- * This fucntion converts a date format string from PHP to JS
543
+ * This function converts a date format string from PHP to JS
544
544
* @since ACF 5.0.0
545
545
* @param $time (string)
546
546
* @return (string)
@@ -611,7 +611,7 @@ This function will walk through the $_FILES data and upload each found.
611
611
612
612
acf_upload_file
613
613
614
- * This function will uploade a $_ FILE
614
+ * This function will upload a $_ FILE
615
615
* @since ACF 5.0.9
616
616
* @param $uploaded_file (array) array found from $_ FILE data
617
617
* @return $id (int) new attachment ID
@@ -734,8 +734,8 @@ acf_translate
734
734
* This function will translate a string using the new 'l10n_textdomain' setting
735
735
Also works for arrays which is great for fields - select -> choices
736
736
* @since ACF 5.3.2
737
- * @param $string ( mixed) string or array containins strings to be translated
738
- * @return $string
737
+ * @param mixed $ string String or array containing strings to be translated.
738
+ * @return mixed
739
739
740
740
## ` acf_maybe_add_action() `
741
741
@@ -769,7 +769,7 @@ Return an image tag for the provided attachment ID
769
769
770
770
acf_get_post_thumbnail
771
771
772
- * This function will return a thumbail image url for a given post
772
+ * This function will return a thumbnail image url for a given post
773
773
* @since ACF 5.3.8
774
774
* @param $post (obj)
775
775
* @param $size (mixed)
@@ -787,7 +787,7 @@ acf_get_browser
787
787
788
788
acf_is_ajax
789
789
790
- * This function will reutrn true if performing a wp ajax call
790
+ * This function will return true if performing a wp ajax call
791
791
* @since ACF 5.3.8
792
792
* @param n/a
793
793
* @return (boolean)
@@ -910,8 +910,8 @@ Useful to preserve numeric keys when performing array_multisort
910
910
911
911
## ` acf_connect_attachment_to_post() `
912
912
913
- This function will connect an attacment (image etc) to the post
914
- Used to connect attachements uploaded directly to media that have not been attaced to a post
913
+ This function will connect an attachment (image etc) to the post
914
+ Used to connect attachments uploaded directly to media that have not been attached to a post
915
915
916
916
* @since ACF 5.8.0 Added filter to prevent connection.
917
917
* @since ACF 5.5.4
@@ -970,7 +970,7 @@ acf_convert_rules_to_groups
970
970
971
971
acf_register_ajax
972
972
973
- * Regsiters an ajax callback.
973
+ * Registers an ajax callback.
974
974
* @since ACF 5.7.7
975
975
* @param string $name The ajax action name.
976
976
* @param array $callback The callback function or array.
@@ -991,7 +991,7 @@ Thanks to <https://stackoverflow.com/questions/31274782/convert-array-keys-from-
991
991
992
992
acf_array_camel_case
993
993
994
- * Converts all aray keys to camelCase.
994
+ * Converts all array keys to camelCase.
995
995
* @since ACF 5.8.0
996
996
* @param array $array The array to convert.
997
997
* @return array
0 commit comments