I have few lines of code which i need to clean up as per WP coding standard using the functions like esc_html, wp_kses() etc (https://developer.wordpress.org/reference/functions/wp_kses/). That code generates a printing button on the post detail page. The problem is i can't figure out the correct way to use wp_kses function so as to show the button on the page. Could anyone help me here? I am a beginner for php. Thanks in advance!
Code on the file
<!-- printer friednly link -->
<?php if(function_exists('pf_show_link')){echo pf_show_link();} ?>
Code i am trying to add which is not outputting any button
<!-- printer friednly link -->
<?php
if ( function_exists( 'pf_show_link' ) ) {
$allowed_tags = array(
'strong' => array(),
'a' => array(
'href' => array(),
'title' => array(),
),
);
echo wp_kses( $allowed_tags );
}
?>