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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
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