Created
December 24, 2015 00:35
-
-
Save anonymous/ea942cb6bf5f48c875a7 to your computer and use it in GitHub Desktop.
Getting client details for Dash
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 | |
/* Template Name: Dashboard */ | |
global $post, $doctype; | |
$current_user = wp_get_current_user(); | |
$client_id = $current_user->ID; | |
$client = Sprout_Client::get_instance($client_id); | |
$client->get_phone(); | |
get_header(); ?> | |
<section> | |
<article> | |
<h2>Welcome <?php echo $current_user->user_firstname; ?>!</h2> | |
</article> | |
<article> | |
</article> | |
</section> | |
<?php | |
if (get_field('add_sidebar')): | |
get_sidebar(); | |
endif; | |
?> | |
<?php get_footer(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment