acpt_field

acpt_field

Usage

acpt_field([
    'post_id' => 123,
    'box_name' => 'box',
    'field_name' => 'field'
]);

Parameters

  • post_id (integer) (Required if term_id, user_id and option_page are null) The post ID

  • term_id (integer) (Required if post_id, user_id and option_page are null) The term ID

  • user_id (integer) (Required if post_id, term_id and option_page are null) The user ID

  • option_page (string) (Required if post_id, term_id and user_id are null) The option page slug

  • box_name (string) (Required) The box name

  • field_name (string) (Required) The field name

  • date_format (string) (Optional) The date format (for Date, DateTime, and Date range fields)

  • time-format (string) (Optional) The time format (for Time and DateTime fields)

  • width (string) (Optional) The element width (for Image, Video, and Gallery fields)

  • height (string) (Optional) The element height (for Image, Video, and Gallery fields)

  • target (string) (Optional) The target of a link (for URL fields)

  • elements (string) (Optional) The number of elements per row (for Gallery fields)

Return

  • string|html

Last updated