Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
If you have Sabai and you want to customize the dashboard to be part of another page (like inside of woocommerce my account) use this shortcode
add_shortcode('sabai-directory-dashboard', 'sabai_directory_dashboard_get_shortcode');
function sabai_directory_dashboard_get_shortcode($atts, $content, $tag){
$platform = get_sabai_platform();
$path = $platform->getSabai()->getAddon('Directory')->getSlug('dashboard');
return $platform->shortcode($path, (array)$atts, $content);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment