Skip to content

Commit 3965fc6

Browse files
committed
Generate stubs for ACF PRO 6.2.3
1 parent c2b1379 commit 3965fc6

File tree

1 file changed

+85
-35
lines changed

1 file changed

+85
-35
lines changed

acf-pro-stubs.php

Lines changed: 85 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class ACF
1616
*
1717
* @var string
1818
*/
19-
public $version = '6.2.2';
19+
public $version = '6.2.3';
2020
/**
2121
* The plugin settings array.
2222
*
@@ -1236,17 +1236,16 @@ function html()
12361236
{
12371237
}
12381238
/**
1239-
* meta_box_html
1239+
* Output the metabox HTML for specific tools
12401240
*
1241-
* description
1241+
* @since 5.6.3
12421242
*
1243-
* @date 10/10/17
1244-
* @since 5.6.3
1243+
* @param mixed $post The post this metabox is being displayed on, should be an empty string always for us on a tools page.
1244+
* @param array $metabox An array of the metabox attributes.
12451245
*
1246-
* @param void
1247-
* @return void
1246+
* @return void
12481247
*/
1249-
function metabox_html($post, $metabox)
1248+
public function metabox_html($post, $metabox)
12501249
{
12511250
}
12521251
}
@@ -13366,6 +13365,7 @@ function field_group_admin_enqueue_scripts()
1336613365
* @since 6.2.1
1336713366
*
1336813367
* @return void
13368+
* @phpstan-return void
1336913369
*/
1337013370
public function maybe_show_license_status_error()
1337113371
{
@@ -20247,6 +20247,16 @@ function acf_update_nested_array(&$array, $ancestors, $value)
2024720247
function acf_is_screen($id = '')
2024820248
{
2024920249
}
20250+
/**
20251+
* Check if we're in an ACF admin screen
20252+
*
20253+
* @since 6.2.2
20254+
*
20255+
* @return boolean Returns true if the current screen is an ACF admin screen.
20256+
*/
20257+
function acf_is_acf_admin_screen()
20258+
{
20259+
}
2025020260
/**
2025120261
* acf_maybe_get
2025220262
*
@@ -20521,17 +20531,14 @@ function acf_is_ajax($action = '')
2052120531
{
2052220532
}
2052320533
/**
20524-
* acf_format_date
20525-
*
20526-
* This function will accept a date value and return it in a formatted string
20527-
*
20528-
* @type function
20529-
* @date 16/06/2016
20530-
* @since 5.3.8
20531-
*
20532-
* @param string $value
20533-
* @return string $format
20534-
*/
20534+
* Returns a date value in a formatted string.
20535+
*
20536+
* @since 5.3.8
20537+
*
20538+
* @param string $value The date value to format.
20539+
* @param string $format The format to use.
20540+
* @return string
20541+
*/
2053520542
function acf_format_date($value, $format)
2053620543
{
2053720544
}
@@ -23811,6 +23818,17 @@ function register_options_page($page = '')
2381123818
function acf_pro_check_defined_license()
2381223819
{
2381323820
}
23821+
/**
23822+
* Get translated upstream message
23823+
*
23824+
* @since 6.2.3
23825+
* @param string $text server side message string.
23826+
*
23827+
* @return string a translated (or original, if unavailable), message string.
23828+
*/
23829+
function acf_pro_get_translated_connect_message($text)
23830+
{
23831+
}
2381423832
/**
2381523833
* Set the automatic activation failure transient
2381623834
*
@@ -23843,7 +23861,7 @@ function acf_pro_get_activation_failure_transient()
2384323861
* @since 5.11.0
2384423862
* @phpstan-return void
2384523863
*/
23846-
function acf_pro_display_activation_error()
23864+
function acf_pro_display_activation_error($screen)
2384723865
{
2384823866
}
2384923867
/**
@@ -23859,11 +23877,11 @@ function acf_pro_get_license()
2385923877
{
2386023878
}
2386123879
/**
23862-
* An ACF specific getter to replace `home_url` in our licence checks to ensure we can avoid third party filters.
23880+
* An ACF specific getter to replace `home_url` in our license checks to ensure we can avoid third party filters.
2386323881
*
2386423882
* @since 6.0.1
2386523883
*
23866-
* @return string $home_url The output from home_url, sans known third party filters which cause licence activation issues.
23884+
* @return string $home_url The output from home_url, sans known third party filters which cause license activation issues.
2386723885
*/
2386823886
function acf_get_home_url()
2386923887
{
@@ -23873,23 +23891,21 @@ function acf_get_home_url()
2387323891
*
2387423892
* @since 6.0.1
2387523893
*
23876-
* @param string $home_url the WPML converted home URL.
23894+
* @param string $home_url the multilingual plugin converted home URL.
2387723895
* @param string $url the original home URL.
2387823896
*
2387923897
* @return string $url
2388023898
*/
23881-
function acf_licence_wpml_intercept($home_url, $url)
23899+
function acf_license_ml_intercept($home_url, $url)
2388223900
{
2388323901
}
2388423902
/**
23885-
* This function will return the license key
23903+
* Returns the license key.
2388623904
*
23887-
* @type function
23888-
* @date 20/09/2016
23889-
* @since 5.4.0
23905+
* @since 5.4.0
2389023906
*
23891-
* @param boolean $skip_url_check Skip the check of the current site url.
23892-
* @return string $license_key
23907+
* @param boolean $skip_url_check Skip the check of the current site url.
23908+
* @return string|bool License key on success, or false on failure.
2389323909
*/
2389423910
function acf_pro_get_license_key($skip_url_check = \false)
2389523911
{
@@ -23919,14 +23935,14 @@ function acf_pro_get_registered_block_count()
2391923935
* Activates the submitted license key
2392023936
* Formally ACF_Admin_Updates::activate_pro_licence since 5.0.0
2392123937
*
23922-
* @date 30/09/2021
2392323938
* @since 5.11.0
2392423939
*
23925-
* @param string $license_key License key to activate
23926-
* @param boolean $silent Return errors rather than displaying them
23927-
* @return mixed $response A wp-error instance, or an array with a boolean success key, and string message key
23940+
* @param string $license_key License key to activate.
23941+
* @param boolean $silent Return errors rather than displaying them.
23942+
* @param boolean $automatic True if this activation is happening automatically.
23943+
* @return mixed $response A wp-error instance, or an array with a boolean success key, and string message key.
2392823944
*/
23929-
function acf_pro_activate_license($license_key, $silent = \false)
23945+
function acf_pro_activate_license($license_key, $silent = \false, $automatic = \false)
2393023946
{
2393123947
}
2393223948
/**
@@ -24029,4 +24045,38 @@ function acf_pro_is_license_expired($status = array())
2402924045
*/
2403024046
function acf_pro_was_license_refunded($status = array())
2403124047
{
24048+
}
24049+
/**
24050+
* Checks if the `home_url` has changed since license activation.
24051+
*
24052+
* @since 6.2.2
24053+
*
24054+
* @param array $license Optional ACF license array.
24055+
* @param string $url An optional URL to provide.
24056+
* @return bool True if the URL has changed, false otherwise.
24057+
*/
24058+
function acf_pro_has_license_url_changed($license = array(), $url = '')
24059+
{
24060+
}
24061+
/**
24062+
* Attempts to reactivate the license if the URL has changed.
24063+
*
24064+
* @since 6.2.3
24065+
*
24066+
* @return void
24067+
* @phpstan-return void
24068+
*/
24069+
function acf_pro_maybe_reactivate_license()
24070+
{
24071+
}
24072+
/**
24073+
* Gets the URL to the "My Account" section for an ACF license.
24074+
*
24075+
* @since 6.2.3
24076+
*
24077+
* @param array $status Optional license status array.
24078+
* @return string
24079+
*/
24080+
function acf_pro_get_manage_license_url($status = array())
24081+
{
2403224082
}

0 commit comments

Comments
 (0)