New Landing How can we help? Themeforest Theme Support Dante codex antispambot and shortcode creation

Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Dante
  • #41416
    arib
    Member
    Post count: 43

    Do you see any problem implementing this in:
    functions.php
    And using the new shortcode via:
    [email][email protected][/email]

    Seems to work fine for me

    http://codex.wordpress.org/Function_Reference/antispambot

    /* EMAIL ENCODE SHORTCODE
    	================================================== */
    function email_encode_function( $atts, $content ){
    	return '<a href="'.antispambot("mailto:".$content).'">'.antispambot($content).'</a>';
    }
    add_shortcode( 'email', 'email_encode_function' );
    #41797
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    I see nothing wrong with that, it’s a good idea!

    – Ed

    #46680
    ALDD
    Member
    Post count: 80

    This is exactly what I was looking for!

    #46810
    ALDD
    Member
    Post count: 80

    Hell Ed,

    Can this be implemented on the next update?

    #47580
    Tahir – SUPPORT
    Member
    Post count: 1212

    I am sure Ed will look into it. Have assigned this thread to him.

    Best,
    Tahir

    #47763
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Will see what I can do for the next update 🙂

    – Ed

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register