This file contains 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
/* Plugin */ | |
wp_enqueue_script( 'plugin-js', get_template_directory_uri() . '/js/filename.js', array( 'jquery' ), '1', true ); | |
wp_enqueue_style( 'plugin-css', get_template_directory_uri() . '/css/filename.css' ); |
This file contains 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
//Your html code snippet | |
<?php echo(encode_email(get_field('variable-you-choose')));?> | |
//Your Functions file add on | |
function encode_email($e) { | |
$output = ""; | |
for ($i = 0; $i < strlen($e); $i++) { $output .= '&#'.ord($e[$i]).';'; } | |
return $output; | |
} |