Skip to content

Commit

Permalink
Document hook, mark one as duplicate.
Browse files Browse the repository at this point in the history
  • Loading branch information
barryhughes committed May 3, 2023
1 parent 71fbc5f commit f8af80a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Expand Up @@ -174,6 +174,11 @@ public function get_default_additional_content() {
* @return string
*/
public function get_additional_content() {
/**
* This filter is documented in ./class-wc-email.php
*
* @since 7.8.0
*/
return apply_filters( 'woocommerce_email_additional_content_' . $this->id, $this->format_string( $this->get_option( 'additional_content' ) ), $this->object, $this ); // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment
}

Expand Down
9 changes: 9 additions & 0 deletions plugins/woocommerce/includes/emails/class-wc-email.php
Expand Up @@ -400,6 +400,15 @@ public function get_default_additional_content() {
* @return string
*/
public function get_additional_content() {
/**
* Provides an opportunity to inspect and modify additional content for the email.
*
* @since 3.7.0
*
* @param string $additional_content Additional content to be added to the email.
* @param object|bool $object The object (ie, product or order) this email relates to, if any.
* @param WC_Email $email WC_Email instance managing the email.
*/
return apply_filters( 'woocommerce_email_additional_content_' . $this->id, $this->format_string( $this->get_option( 'additional_content', $this->get_default_additional_content() ) ), $this->object, $this );
}

Expand Down

0 comments on commit f8af80a

Please sign in to comment.