Skip to main content

Gravity_Forms\Gravity_Forms\Template_Library\Templates\GF_Templates_Store

Source: includes/template-library/templates/class-gf-template-library-templates-store.php:7

Details

  • Kind: interface
  • Namespace: Gravity_Forms\Gravity_Forms\Template_Library\Templates

Methods

MethodDescription
get_templates()Retrieves raw data and store it in memory, returns it if it already exists.
get()Return a template by its ID.
all()Returns all the templates as an array.

Method Reference

get_templates()

public function get_templates()

Retrieves raw data and store it in memory, returns it if it already exists.

Returns

  • array

Since: 2.7

Source: includes/template-library/templates/class-gf-template-library-templates-store.php:15

get()

public function get( $id )

Return a template by its ID.

Parameters

NameTypeDefaultDescription
$idstringThe id of the template.

Returns

  • GF_Template_Library_Template

Since: 2.7

Source: includes/template-library/templates/class-gf-template-library-templates-store.php:26

all()

public function all( $include_meta )

Returns all the templates as an array.

Parameters

NameTypeDefaultDescription
$include_metaboolwhether to include the template form meta or not.

Returns

  • array

Since: 2.7

Source: includes/template-library/templates/class-gf-template-library-templates-store.php:37