Admin Page Framework - Field Type Pack Documentation
  • Package
  • Class

Packages

  • AdminPageFrameworkFieldTypePack
    • CustomFieldType

Classes

  • AutoCompleteCustomFieldType
  • DateCustomFieldType
  • DateRangeCustomFieldType
  • DateTimeCustomFieldType
  • DateTimeRangeCustomFieldType
  • DialCustomFieldType
  • EDDSoftwareLicensingCustomFieldType
  • FontCustomFieldType
  • GeometryCustomFieldType
  • GridCustomFieldType
  • ImageCheckboxCustomFieldType
  • ImageRadioCustomFieldType
  • LinkCustomFieldType
  • RevealerCustomFieldType
  • TimeCustomFieldType
  • TimeRangeCustomFieldType

Class LinkCustomFieldType

Defines the link field type.

This allows the user to set a post url by selecting a post title.

Field Type Specific Arguments

n/a

Example

array(
    'field_id'      => 'link_field',
    'type'          => 'link',
    'title'         => __( 'Single Link' ),
),
array(
    'field_id'      => 'link_repeatable_field',
    'type'          => 'link',
    'title'         => __( 'Repeatable Links' ),
    'repeatable'    =>    true,
)
Package: AdminPageFrameworkFieldTypePack\CustomFieldType
Since: 1.0.0
Located at custom-field-types/link-custom-field-type/LinkCustomFieldType.php

Methods summary

protected
# setUp( )

Loads the field type necessary components.

protected
# getEnqueuingScripts( )

Returns an array holding the urls of enqueuing scripts.

protected
# getEnqueuingStyles( )
protected
# getScripts( )

Returns the field type specific JavaScript script.

protected
# getStyles( )

Returns the field type specific CSS rules.

public
# getField( mixed $aField )

Returns the output of the field type.

protected
# _getExtraInputs( mixed $aField )
protected
# _getUploadButtonScript( mixed $sInputID )

Returns the field type specific JavaScript script.

public
# _replyToAddLinkModalQueryPlugin( )

Prints out the jQuery plugin that adds the link modal dialog.

Magic methods summary

Properties summary

public array $aFieldTypeSlugs
#

Defines the field type slugs used for this field type.

protected array $aDefaultKeys
#

Defines the default key-values of this field type settings.

Remark

$_aDefaultKeys holds shared default key-values defined in the base class.
public static mixed $_bLoaded
#

Stores the flag indicating whether it is loaded or not.

Admin Page Framework - Field Type Pack Documentation generated by ApiGen 2.8.0