Skip to content

Commit

Permalink
Added shortcode support
Browse files Browse the repository at this point in the history
Based on Devin's suggestions from DevinVinson#262 (comment)
  • Loading branch information
garretthunter authored Feb 26, 2018
1 parent 9aed6aa commit 2b3e621
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin-name/includes/class-plugin-name-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function add_filter( $hook, $component, $callback, $priority = 10, $accep
* @param string $callback The name of the function that defines the shortcode.
*/
public function add_shortcode( $tag, $component, $callback, $priority = 10, $accepted_args = 1 ) {
$this->shortcodes = $this->add( $this->shortcodes, $tag, $component, $callback);
$this->shortcodes = $this->add( $this->shortcodes, $tag, $component, $callback, $priority, $accepted_args);
}

/**
Expand Down

0 comments on commit 2b3e621

Please sign in to comment.