Skip to content

Instantly share code, notes, and snippets.

Created December 24, 2015 00:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/ea942cb6bf5f48c875a7 to your computer and use it in GitHub Desktop.
Save anonymous/ea942cb6bf5f48c875a7 to your computer and use it in GitHub Desktop.
Getting client details for Dash
<?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