Gravity_Forms\Gravity_Forms\Settings\Config\GF_Settings_Config_Admin
Config items for the Settings Fields
Since: 2.6.2
Source: includes/settings/config/class-gf-settings-config-admin.php:13
Details
- Kind:
class - Namespace:
Gravity_Forms\Gravity_Forms\Settings\Config - Extends:
GF_Config
Methods
| Method | Description |
|---|---|
should_enqueue() | Only enqueue in the admin. |
data() | Config data. |
get_first_posts_for_type() | Get the first posts to populate the dropdown. |
get_first_users() | Get the first users to populate the dropdown. |
Method Reference
should_enqueue()
public function should_enqueue()
Only enqueue in the admin.
Returns
bool
Since: 2.6.2
Source: includes/settings/config/class-gf-settings-config-admin.php:25
data()
public function data()
Config data.
Returns
array[]
Since: 2.6.2
Source: includes/settings/config/class-gf-settings-config-admin.php:36
get_first_posts_for_type()
public function get_first_posts_for_type( $post_type, $count )
Get the first posts to populate the dropdown.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$post_type | string | Post type slug | |
$count | int | Number of posts |
Returns
array|false
Since: 2.6.2
Source: includes/settings/config/class-gf-settings-config-admin.php:116
get_first_users()
public function get_first_users()
Get the first users to populate the dropdown.
Returns
array|false
Since: 2.9.5
Source: includes/settings/config/class-gf-settings-config-admin.php:141