Refactor : query du widget admin + remove action requise
This commit is contained in:
parent
98c2e43f6f
commit
5237000699
|
|
@ -4,6 +4,7 @@ $current_user = wp_get_current_user();
|
|||
|
||||
$args = array(
|
||||
'post_type' => 'artisans',
|
||||
'post_status' => array('publish', 'offline'),
|
||||
'meta_key' => 'conseiller',
|
||||
'meta_value' => $current_user->ID,
|
||||
'posts_per_page' => -1
|
||||
|
|
@ -34,7 +35,7 @@ $current_user = wp_get_current_user();
|
|||
<div class="total-attached">
|
||||
<p> Artisans associés : <?php echo count($user_attached_artisans->posts) ?></p>
|
||||
</div>
|
||||
<div class="required-actions">
|
||||
<!-- <div class="required-actions">
|
||||
<?php
|
||||
$total = count($required_actions_artisans->posts);
|
||||
?>
|
||||
|
|
@ -59,7 +60,7 @@ $current_user = wp_get_current_user();
|
|||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<a class="cta cta--button" href="<?php echo home_url('/wp-admin/admin.php?page=gestion-artisans') ?>">Pannel de gestion</a>
|
||||
<?php
|
||||
Loading…
Reference in New Issue
Block a user