smallpink_shortcode
The Black Rider Lite Responsive Theme smallpink shortcode function.
Description
Parameters (2)
- 0. $atts
- The atts.
- 1. $content — Optional. (constant) =>
null
- The content.
Usage
if ( !function_exists( 'smallpink_shortcode' ) ) { require_once '/functions/shortcodes.php'; } // The atts. $atts = null; // The content. $content = null; // NOTICE! Understand what this does before running. $result = smallpink_shortcode($atts, $content);
Defined (1)
The function is defined in the following location(s).
- /functions/shortcodes.php
- function smallpink_shortcode($atts, $content = null) {
- extract(shortcode_atts(array("url" => ''), $atts));
- return '<a href="' . $url . '" class="button2 pink">' . do_shortcode($content) . '<span></span></a>';
- }