Browse: Home / Hooks /

learndash_ld_certificate_html

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 #

File: includes/shortcodes/ld_certificate.php


Examples #

Note: Extended code example below not guaranteed, you may need to consult with a developer

 <?php
/**
 * Example usage for learndash_remove_template_content_filter filter.
 */
add_filter(
	'learndash_remove_template_content_filter',
	function( $remove_filter ) {
		// May add any custom logic using $remove_filter.

		// Always return $remove_filter.
		return $remove_filter;
	}
);
 

Changelog #

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.