Skip to content

Instantly share code, notes, and snippets.

@AlexMcowkin
Last active August 29, 2015 14:17
Show Gist options
  • Save AlexMcowkin/0c678393e15b23f4cae3 to your computer and use it in GitHub Desktop.
Save AlexMcowkin/0c678393e15b23f4cae3 to your computer and use it in GitHub Desktop.
WP shortcodes: simple
<?php
// в посте добавить
[shortcodeName]
// в файле functions.php
function fncName()
{
//body
return $output;
}
add_shortcode('shortcodeName', 'fncName');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment