%s

', esc_url( get_credit_url() ), esc_html__( 'Double Opt-In by Forge12', 'double-opt-in' ) ); /** * Filter the credit markup. * * @param string $markup The rendered credit, or '' when switched off. * @param bool $force Whether rendering was forced for a preview. * * @since 5.2.0 */ return (string) apply_filters( 'f12_doi_credit_markup', $markup, $force ); } /** * Attach the credit to the confirmation page. * * Typed as mixed rather than string on purpose: this hangs on a public filter, * so another plugin earlier in the chain can hand over anything at all. Passing * that through untouched is better than breaking someone's page over a credit. * * @param mixed $html Whatever the confirmation output point has collected. * * @return mixed */ function append_credit( $html ) { if ( ! is_string( $html ) ) { return $html; } $credit = get_credit_markup(); return $credit === '' ? $html : $html . $credit; } add_filter( 'f12_doi_confirmation_output', __NAMESPACE__ . '\append_credit', 20 );