Created
April 13, 2012 15:09
-
-
Save kachi/2377555 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function antispambot_short($atts) { | |
| extract(shortcode_atts(array( | |
| 'mail' => '', | |
| 'text' => 'クリックしてメーラーを起動', | |
| ), $atts)); | |
| $mail = antispambot($mail); | |
| return '<a href="mailto:' .$mail . '">' .$text .'</a>'; | |
| } | |
| add_shortcode('maillink', 'antispambot_short'); | |
| ?> | |
| /*[maillink mail="example@example.com" text="メールはコチラ"]のように書く*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment