Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
namespace Something;
class Shortcode {
public function __construct(public \WP_User $user )
{
}
public function callback() : string
{
$html = '';
//call other classed to make HTML
return $html;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment