Skip to content

Commit 042f419

Browse files
committed
Generate stubs for ACF PRO 6.0.4
1 parent e02c043 commit 042f419

File tree

1 file changed

+56
-21
lines changed

1 file changed

+56
-21
lines changed

acf-pro-stubs.php

Lines changed: 56 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class ACF
1515
*
1616
* @var string
1717
*/
18-
public $version = '6.0.3';
18+
public $version = '6.0.4';
1919
/**
2020
* The plugin settings array.
2121
*
@@ -3010,11 +3010,11 @@ class acf_field__accordion extends \acf_field
30103010
*
30113011
* This function will setup the field type data
30123012
*
3013-
* @date 30/10/17
3014-
* @since 5.6.3
3013+
* @date 30/10/17
3014+
* @since 5.6.3
30153015
*
3016-
* @param void
3017-
* @return void
3016+
* @param void
3017+
* @return void
30183018
*/
30193019
function initialize()
30203020
{
@@ -3024,11 +3024,11 @@ function initialize()
30243024
*
30253025
* Create the HTML interface for your field
30263026
*
3027-
* @date 30/10/17
3028-
* @since 5.6.3
3027+
* @date 30/10/17
3028+
* @since 5.6.3
30293029
*
3030-
* @param array $field
3031-
* @return void
3030+
* @param array $field
3031+
* @return void
30323032
*/
30333033
function render_field($field)
30343034
{
@@ -12744,17 +12744,11 @@ class acf_field_repeater extends \acf_field
1274412744
*/
1274512745
public $is_rendering = \false;
1274612746
/**
12747-
* The total number of rows added to the repeater.
12748-
*
12749-
* @var int
12750-
*/
12751-
public $total_rows = 0;
12752-
/**
12753-
* The original field name before it's ran through `acf_prepare_field()`.
12747+
* The post/page ID that we're rendering for.
1275412748
*
12755-
* @var string
12749+
* @var mixed
1275612750
*/
12757-
public $orig_name = '';
12751+
public $post_id = \false;
1275812752
/**
1275912753
* This function will set up the field type data
1276012754
*
@@ -12795,7 +12789,7 @@ public function load_field($field)
1279512789
* @param mixed $post_id The post ID for the field being rendered.
1279612790
* @return array
1279712791
*/
12798-
function pre_render_fields($fields, $post_id = \false)
12792+
public function pre_render_fields($fields, $post_id = \false)
1279912793
{
1280012794
}
1280112795
/**
@@ -12806,7 +12800,7 @@ function pre_render_fields($fields, $post_id = \false)
1280612800
*
1280712801
* @param array $field An array holding all the field's data.
1280812802
*/
12809-
function render_field($field)
12803+
public function render_field($field)
1281012804
{
1281112805
}
1281212806
/**
@@ -12854,7 +12848,7 @@ function render_field_presentation_settings($field)
1285412848
* @param array $field The field array holding all the field options.
1285512849
* @return array $value
1285612850
*/
12857-
function load_value($value, $post_id, $field)
12851+
public function load_value($value, $post_id, $field)
1285812852
{
1285912853
}
1286012854
/**
@@ -13064,6 +13058,17 @@ public function get_rest_schema(array $field)
1306413058
public function format_value_for_rest($value, $post_id, array $field)
1306513059
{
1306613060
}
13061+
/**
13062+
* Takes the provided input name and turns it into a field name that
13063+
* works with repeater fields that are subfields of other fields.
13064+
*
13065+
* @param string $input_name The name attribute used in the repeater.
13066+
*
13067+
* @return string|bool
13068+
*/
13069+
public function get_field_name_from_input_name($input_name)
13070+
{
13071+
}
1306713072
/**
1306813073
* Returns an array of rows used to populate the repeater table over AJAX.
1306913074
*
@@ -14831,6 +14836,26 @@ function acf_get_current_url()
1483114836
function acf_add_url_utm_tags($url, $campaign, $content, $anchor = \false)
1483214837
{
1483314838
}
14839+
/**
14840+
* Sanitizes request arguments.
14841+
*
14842+
* @param mixed $args The data to sanitize.
14843+
*
14844+
* @return array|bool|float|int|mixed|string
14845+
*/
14846+
function acf_sanitize_request_args($args = array())
14847+
{
14848+
}
14849+
/**
14850+
* Sanitizes file upload arrays.
14851+
*
14852+
* @param array $args The file array.
14853+
*
14854+
* @return array
14855+
*/
14856+
function acf_sanitize_files_array(array $args = array())
14857+
{
14858+
}
1483414859
/**
1483514860
* acf_add_filter_variations
1483614861
*
@@ -19822,6 +19847,16 @@ function acf_rendered_block($attributes, $content = '', $is_preview = \false, $p
1982219847
function acf_render_block($attributes, $content = '', $is_preview = \false, $post_id = 0, $wp_block = \null, $context = \false)
1982319848
{
1982419849
}
19850+
/**
19851+
* Locate and include an ACF block's template.
19852+
*
19853+
* @since 6.0.4
19854+
*
19855+
* @param array $block The block props.
19856+
*/
19857+
function acf_block_render_template($block, $content, $is_preview, $post_id, $wp_block, $context)
19858+
{
19859+
}
1982519860
/**
1982619861
* Returns an array of all fields for the given block.
1982719862
*

0 commit comments

Comments
 (0)