I create a custom payment for WordPress, is a simple code but I need to hide the code, I thought about creating a shortcode [custom_shorcode].
When I put the shortcode i need to display a custom html with php.
I create a custom payment for WordPress, is a simple code but I need to hide the code, I thought about creating a shortcode [custom_shorcode].
When I put the shortcode i need to display a custom html with php.
You can do this in the functions.php or a simple Plugin.
To create it in the functions.php of your child-theme, do it like this:
add_shortcode('your-shortcode', 'yourFunction');
function yourFunction(){
//do your stuff
}
You can find the documentation here