[e2pdf-format-output]

A shortcode wrapper that modifies the output of a shortcode or field slug.

Basic Attributes #

  • The shortcode splits the string by the "," separator and outputs the value by index:
    • explode - Separator to split the string.
    • output - Index: {0}, {1}, {2}, ..., to output.

    The shortcode splits the string by the "," separator and outputs the parts merged with "-":
    • explode - Separator to split the string.
    • implode - Separator to merge the string.
  • Case-sensitive search and replace the string: Multiple values can be searched and replaced by using "|||" separator:
    • search - String to search.
    • replace - Replacement string.
  • Case-insensitive search and replace the string: Multiple values can be searched and replaced by using "|||" separator:
    • search - String to search.
    • ireplace - Replacement string.
  • Returns part of a string by Length: Returns part of a string by Start,Length:
    • substr - Start, Length
  • Returns a formatted string via sprintf:
    • sprintf - Format of the sprintf.
  • Apply filter to the string: Apply filter to each separated string exploded by separator: Apply multiple filters to the string. It will keep the order of filters added to the "filter" attribute:
    • filter - Filters that will be applied to the string. The available filters for the "filter" attribute are listed below:

      • trim - Strips spaces from the start and end of the string.
      • rtrim - Strips spaces from the end of the string.
      • ltrim - Strips spaces from the start of the string.

      • ucfirst - Returns the string with the first character capitalized.
      • strtoupper - Returns the string with all characters converted to uppercase.
      • strtolower - Returns the string with all characters converted to lowercase.

      • lines - Removes empty lines.
      • nl2br - Converts new lines to <br>.
      • wpautop - Replaces double line breaks with paragraph elements.
      • normalize_whitespace - Normalizes new lines and strips duplicate whitespace.

      • strip_tags - Strips HTML and PHP tags from a string.
      • sanitize_title - Converts characters to ASCII characters and further limits the output to alphanumeric characters, underscore (_) and dash (-).
      • htmlentities - Converts all applicable characters to HTML entities.
      • html_entity_decode - Converts HTML entities in the string to their corresponding characters.

      • replace - Defines the order of the replace filter. "search" and "replace" additional attributes are required.
      • ireplace - Defines the order of the ireplace filter. "search" and "ireplace" additional attributes are required.

      • substr - Defines the order of the substr filter. "substr" additional attribute is required.
      • sprintf - Defines the order of the sprintf filter. "sprintf" additional attribute is required.
Get News and Updates
Our monthly newsletter keeps you in the loop, so you'll always be up to date with the latest news and updates about E2Pdf.
* You can update your email subscription preferences here.
All trademarks, service marks, trade names, product names, and logos appearing on this website are the property of their respective owners. The use of trademarks such as Formidable Forms®, Forminator Forms®, Gravity Forms®, JetFormBuilder®, WordPress®, WooCommerce®, WPForms® and others is solely for identification purposes (nominative use) and does not imply any affiliation, sponsorship, or endorsement by the respective trademark holders.
© 2017 - 2026, https://e2pdf.com

We use cookies to collect and analyse information on site performance and usage, to provide social media features and to enhance and customise content and advertisements. By clicking "Accept Selected", you consent to use of selected cookies according to our Cookie Policy.