How to escape echo?
-
How to escape echo…
Here the function is for theme options page where the blogger add their social pages…Title
//Social Icons function wallspot_sidebar_options() { /* Translate */ echo ( 'Add your social media links for the top right corner.', 'pen-post' );
And the social link
function wallspot_sidebar_twitter() { $twitter = esc_attr( get_option( 'twitter_handler' )); echo ( '<input type="text" name="twitter_handler" value="'.$twitter.'" placeholder="Twitter handler" /> <p class="description">Enter twitter handler without the @ sign.</p>' ); }
- The topic ‘How to escape echo?’ is closed to new replies.