This hook has been deprecated. Use the ‘learndash_certificate_html’ filter instead.
apply_filters_deprecated( 'learndash_ld_certificate_html', string $cert_button_html, array $atts, string $content )
Filters certificate button HTML output for ld_certificate
shortcode.
Description #
Parameters #
- $cert_button_html
-
(string) The HTML output of generated button element.
- $atts
-
(array) An array of shortcode attributes used to generate $cert_button_html element.
- $content
-
(string) Shortcode additional content passed into handler function.
Source #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php /** * Example usage for ld_certificate_shortcode_cert_url filter. */ add_filter( 'ld_certificate_shortcode_cert_url', function( $cert_url ) { // May add any custom logic using $cert_url. // Always return $cert_url. return $cert_url; } );
Changelog #
Version | Description |
---|---|
3.2.0 | Use the 'learndash_certificate_html' filter instead. |
3.1.4 | Introduced. This hook has been deprecated. Use the {@see 'learndash_certificate_html'} filter instead. |