Support » Themes and Templates » How to escape echo?

  • How to escape echo…
    Here the function is for theme options page where the blogger add their social pages…


    //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>' );
  • You must be logged in to reply to this topic.