/**
  * Execute a specific shortcode directly from code.
  *
  * @since 0.2.4
  *
  * @param string $tag     Tag of the shortcode to execute.
  * @param array  $atts    Array of attributes to pass to the shortcode.
  * @param null   $content Inner content to pass to the shortcode.
  *
  * @return string|false Rendered HTML.
  */
 public function do_tag($tag, array $atts = [], $content = null)
 {
     \BrightNucleus\Shortcode\do_tag($tag, $atts, $content);
 }
Beispiel #2
0
 /**
  * Execute this shortcode directly from code.
  *
  * @since 0.2.4
  *
  * @param array       $atts    Array of attributes to pass to the shortcode.
  * @param string|null $content Inner content to pass to the shortcode.
  * @return string|false Rendered HTML.
  */
 public function do_this(array $atts = [], $content = null)
 {
     \BrightNucleus\Shortcode\do_tag($this->get_tag(), $atts, $content);
 }