Skip to content

Commit 17dc353

Browse files
kraftbjcbravobernal
authored andcommitted
Build assets, documentation, and translations
1 parent a15ed1a commit 17dc353

26 files changed

+218
-7744
lines changed

composer.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,27 @@
1111
"require": {
1212
"php": ">=7.4"
1313
},
14-
"autoload": {
15-
"psr-4": {
16-
"SCF\\Forms\\": "includes/forms/",
17-
"SCF\\Meta\\": "includes/Meta/",
18-
"ACF\\Blocks\\": "includes/Blocks/"
19-
}
20-
},
2114
"require-dev": {
2215
"automattic/wordbless": "^0.5.0",
2316
"dealerdirect/phpcodesniffer-composer-installer": "^1.0",
2417
"ergebnis/composer-normalize": "^2.45",
2518
"nikic/php-parser": "^4.0",
19+
"php-stubs/woocommerce-stubs": "^9.8",
2620
"phpcompatibility/phpcompatibility-wp": "^2.1.3",
2721
"phpstan/extension-installer": "^1.4",
2822
"phpunit/phpunit": "^9.6",
2923
"sirbrillig/phpcs-changed": "^2.11",
3024
"symfony/finder": "^5.0 || ^6.0",
3125
"szepeviktor/phpstan-wordpress": "^2.0",
3226
"wp-coding-standards/wpcs": "^3.0",
33-
"yoast/phpunit-polyfills": "^1.1.0",
34-
"php-stubs/woocommerce-stubs": "^9.8"
27+
"yoast/phpunit-polyfills": "^1.1.0"
28+
},
29+
"autoload": {
30+
"psr-4": {
31+
"ACF\\Blocks\\": "includes/Blocks/",
32+
"SCF\\Forms\\": "includes/forms/",
33+
"SCF\\Meta\\": "includes/Meta/"
34+
}
3535
},
3636
"config": {
3737
"allow-plugins": {

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/bin/manifest.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,11 @@
259259
"parent": "welcome",
260260
"markdown_source": "https://github.com/wordpress/secure-custom-fields/blob/trunk/docs/welcome/quick-start.md"
261261
},
262+
"code-reference/admin/admin-commands-file": {
263+
"slug": "admin-commands-file",
264+
"parent": "admin",
265+
"markdown_source": "https://github.com/wordpress/secure-custom-fields/blob/trunk/docs/code-reference/admin/admin-commands-file.md"
266+
},
262267
"code-reference/admin/admin-notices-file": {
263268
"slug": "admin-notices-file",
264269
"parent": "admin",
@@ -269,6 +274,11 @@
269274
"parent": "admin",
270275
"markdown_source": "https://github.com/wordpress/secure-custom-fields/blob/trunk/docs/code-reference/admin/admin-tools-file.md"
271276
},
277+
"code-reference/admin/beta-features-file": {
278+
"slug": "beta-features-file",
279+
"parent": "admin",
280+
"markdown_source": "https://github.com/wordpress/secure-custom-fields/blob/trunk/docs/code-reference/admin/beta-features-file.md"
281+
},
272282
"code-reference/api/api-helpers-file": {
273283
"slug": "api-helpers-file",
274284
"parent": "api",
@@ -314,6 +324,11 @@
314324
"parent": "rest-api",
315325
"markdown_source": "https://github.com/wordpress/secure-custom-fields/blob/trunk/docs/code-reference/rest-api/class-acf-rest-request-file.md"
316326
},
327+
"code-reference/rest-api/class-acf-rest-types-endpoint-file": {
328+
"slug": "class-acf-rest-types-endpoint-file",
329+
"parent": "rest-api",
330+
"markdown_source": "https://github.com/wordpress/secure-custom-fields/blob/trunk/docs/code-reference/rest-api/class-acf-rest-types-endpoint-file.md"
331+
},
317332
"features/field/accordion": {
318333
"slug": "accordion",
319334
"parent": "field",
@@ -399,6 +414,11 @@
399414
"parent": "field",
400415
"markdown_source": "https://github.com/wordpress/secure-custom-fields/blob/trunk/docs/features/field/message/index.md"
401416
},
417+
"features/field/nav_menu": {
418+
"slug": "nav_menu",
419+
"parent": "field",
420+
"markdown_source": "https://github.com/wordpress/secure-custom-fields/blob/trunk/docs/features/field/nav_menu/index.md"
421+
},
402422
"features/field/number": {
403423
"slug": "number",
404424
"parent": "field",
@@ -579,6 +599,11 @@
579599
"parent": "message",
580600
"markdown_source": "https://github.com/wordpress/secure-custom-fields/blob/trunk/docs/features/field/message/tutorial.md"
581601
},
602+
"features/field/nav_menu/tutorial": {
603+
"slug": "nav_menu-tutorial",
604+
"parent": "nav_menu",
605+
"markdown_source": "https://github.com/wordpress/secure-custom-fields/blob/trunk/docs/features/field/nav_menu/tutorial.md"
606+
},
582607
"features/field/number/tutorial": {
583608
"slug": "number-tutorial",
584609
"parent": "number",

docs/code-reference/META.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,11 @@ This file tracks code elements that need documentation.
7575

7676
- `acf/load_meta`
7777
- `acf/pre_delete_metadata`
78+
- `acf/pre_delete_metadata`
7879
- `acf/pre_load_meta`
7980
- `acf/pre_load_metadata`
81+
- `acf/pre_load_metadata`
82+
- `acf/pre_update_metadata`
8083
- `acf/pre_update_metadata`
8184

8285
## acf-user-functions.php
@@ -94,6 +97,7 @@ This file tracks code elements that need documentation.
9497
- `acf/load_reference`
9598
- `acf/load_value`
9699
- `acf/pre_format_value`
100+
- `acf/pre_load_metadata`
97101
- `acf/pre_load_reference`
98102
- `acf/pre_load_value`
99103
- `acf/pre_update_value`
@@ -135,6 +139,12 @@ This file tracks code elements that need documentation.
135139
- `acf/admin/prevent_escaped_html_notice`
136140
- `acf/in_admin_header`
137141

142+
## admin/beta-features.php
143+
144+
### Hooks
145+
146+
- `scf/include_admin_beta_features`
147+
138148
## admin/class-acf-admin-options-page.php
139149

140150
### Hooks
@@ -324,6 +334,7 @@ This file tracks code elements that need documentation.
324334
- `acf/shortcode/allow_in_block_themes_outside_content`
325335
- `acf/shortcode/allow_unsafe_html`
326336
- `acf/shortcode/disabled_message`
337+
- `acf/shortcode/display_admin_errors`
327338
- `acf/shortcode/field_not_allowed_message`
328339
- `acf/shortcode/field_not_supported_message`
329340
- `acf/shortcode/post_not_public_message`
@@ -414,6 +425,12 @@ This file tracks code elements that need documentation.
414425
- `acf/fields/icon_picker/dashicons`
415426
- `acf/fields/icon_picker/tabs`
416427

428+
## fields/class-acf-field-nav-menu.php
429+
430+
### Hooks
431+
432+
- `wp_nav_menu_container_allowed_tags`
433+
417434
## fields/class-acf-field-page_link.php
418435

419436
### Hooks
@@ -472,6 +489,12 @@ This file tracks code elements that need documentation.
472489
- `media_buttons`
473490
- `teeny_mce_buttons`
474491

492+
## forms/WC_Order.php
493+
494+
### Hooks
495+
496+
- `acf/input/meta_box_priority`
497+
475498
## forms/form-front.php
476499

477500
### Functions

docs/code-reference/acf-bidirectional-functions-file.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Process updating bidirectional fields.
99
* @param integer|string $post_id The ACF encoded origin post, user or term ID.
1010
* @param array $field The field being updated on the origin post, user or term ID.
1111
* @param string|false $target_prefix The ACF prefix for a post, user or term ID required for the update_field call for this field type.
12+
* @return void
1213

1314
## `acf_get_valid_bidirectional_target_types()`
1415

@@ -41,6 +42,7 @@ Renders the field settings required for bidirectional fields
4142

4243
* @since ACF 6.2
4344
* @param array $field The field object passed into field setting functions.
45+
* @return void
4446

4547
## `acf_get_bidirectional_field_settings_instruction_text()`
4648

docs/code-reference/acf-helper-functions-file.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ acf_set_filters
114114
* @date 14/7/16
115115
* @since ACF 5.4.0
116116
* @param array $filters An Array of modifiers.
117-
* @return array
117+
* @return void
118118

119119
## `acf_disable_filters()`
120120

docs/code-reference/acf-input-functions-file.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ acf_hidden_input
4646
* @date 3/02/2014
4747
* @since ACF 5.0.0
4848
* @param array $attrs The array of attrs.
49-
* @return string
49+
* @return void echos out value.
5050

5151
## `acf_get_hidden_input()`
5252

@@ -66,7 +66,7 @@ acf_text_input
6666
* @date 3/02/2014
6767
* @since ACF 5.0.0
6868
* @param array $attrs The array of attrs.
69-
* @return string
69+
* @return void echos out value.
7070

7171
## `acf_get_text_input()`
7272

@@ -86,7 +86,7 @@ acf_file_input
8686
* @date 3/02/2014
8787
* @since ACF 5.0.0
8888
* @param array $attrs The array of attrs.
89-
* @return string
89+
* @return void echos out value.
9090

9191
## `acf_get_file_input()`
9292

@@ -106,7 +106,7 @@ acf_textarea_input
106106
* @date 3/02/2014
107107
* @since ACF 5.0.0
108108
* @param array $attrs The array of attrs.
109-
* @return string
109+
* @return void echos out value.
110110

111111
## `acf_get_textarea_input()`
112112

@@ -126,7 +126,7 @@ acf_checkbox_input
126126
* @date 3/02/2014
127127
* @since ACF 5.0.0
128128
* @param array $attrs The array of attrs.
129-
* @return string
129+
* @return void echos out value.
130130

131131
## `acf_get_checkbox_input()`
132132

@@ -146,7 +146,7 @@ acf_radio_input
146146
* @date 3/02/2014
147147
* @since ACF 5.0.0
148148
* @param array $attrs The array of attrs.
149-
* @return string
149+
* @return void echos out value.
150150

151151
## `acf_get_radio_input()`
152152

@@ -166,7 +166,7 @@ acf_select_input
166166
* @date 3/02/2014
167167
* @since ACF 5.0.0
168168
* @param array $attrs The array of attrs.
169-
* @return string
169+
* @return void
170170

171171
## `acf_get_select_input()`
172172

docs/code-reference/acf-meta-functions-file.md

Lines changed: 42 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,11 @@ Deletes metadata from the database.
5555

5656
## `acf_copy_metadata()`
5757

58-
acf_copy_postmeta
58+
Copies meta from one post to another. Useful for saving and restoring revisions.
5959

60-
* Copies meta from one post to another. Useful for saving and restoring revisions.
61-
* @date 25/06/2016
6260
* @since ACF 5.3.8
63-
* @param (int|string) $from_post_id The post id to copy from.
64-
* @param (int|string) $to_post_id The post id to paste to.
61+
* @param integer|string $from_post_id The post id to copy from.
62+
* @param integer|string $to_post_id The post id to paste to.
6563
* @return void
6664

6765
## `acf_copy_postmeta()`
@@ -112,4 +110,43 @@ acf_update_metaref
112110
* @param array $references An array of references.
113111
* @return (int|bool) Meta ID if the key didn't exist, true on successful update, false on failure.
114112

113+
## `acf_get_meta_instance()`
114+
115+
Retrieves an ACF meta instance for the provided meta type.
116+
117+
* @since 6.5
118+
* @param string $type The meta type as decoded from the post ID.
119+
* @return object|null
120+
121+
## `acf_get_metadata_by_field()`
122+
123+
Gets metadata from the database.
124+
125+
* @since 6.5
126+
* @param integer|string $post_id The post id.
127+
* @param array $field The field array.
128+
* @param boolean $hidden True if we should return the reference key.
129+
* @return mixed
130+
131+
## `acf_update_metadata_by_field()`
132+
133+
Updates metadata in the database.
134+
135+
* @since 6.5
136+
* @param integer|string $post_id The post id.
137+
* @param array $field The field array.
138+
* @param mixed $value The meta value.
139+
* @param boolean $hidden True if we should update the reference key.
140+
* @return integer|boolean Meta ID if the key didn't exist, true on successful update, false on failure.
141+
142+
## `acf_delete_metadata_by_field()`
143+
144+
Deletes metadata from the database.
145+
146+
* @since 6.5
147+
* @param integer|string $post_id The post id.
148+
* @param array $field The field array.
149+
* @param boolean $hidden True if we should update the reference key.
150+
* @return boolean
151+
115152
---

docs/code-reference/acf-user-functions-file.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,9 @@ acf_get_user_role_labels
3232

3333
## `acf_allow_unfiltered_html()`
3434

35-
acf_allow_unfiltered_html
35+
Returns true if the current user is allowed to save unfiltered HTML.
3636

37-
* Returns true if the current user is allowed to save unfiltered HTML.
38-
* @date 9/1/19
39-
* @since ACF 5.7.10
37+
* @since ACF 5.7.10
4038
* @return boolean
4139

4240
---
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Admin Commands Global Functions
2+
3+
## `acf_commands_init()`
4+
5+
Initializes SCF commands integration
6+
7+
* This function handles the integration with WordPress Commands (Cmd+K / Ctrl+K),
8+
providing navigation commands for SCF admin pages and custom post types.
9+
* The implementation follows these principles:
10+
11+
1. Only loads in screens where WordPress commands are available.
12+
2. Performs capability checks to ensure users only see commands they can access.
13+
3. Core administrative commands are only shown to users with SCF admin capabilities.
14+
4. Custom post type commands are conditionally shown based on edit_posts capability
15+
for each specific post type.
16+
5. Post types must have UI enabled (show_ui setting) to appear in commands.
17+
18+
* @since SCF 6.5.0
19+
20+
---

0 commit comments

Comments
 (0)