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(
|
$args = array(
|
||||||
'post_type' => 'artisans',
|
'post_type' => 'artisans',
|
||||||
|
'post_status' => array('publish', 'offline'),
|
||||||
'meta_key' => 'conseiller',
|
'meta_key' => 'conseiller',
|
||||||
'meta_value' => $current_user->ID,
|
'meta_value' => $current_user->ID,
|
||||||
'posts_per_page' => -1
|
'posts_per_page' => -1
|
||||||
|
|
@ -34,7 +35,7 @@ $current_user = wp_get_current_user();
|
||||||
<div class="total-attached">
|
<div class="total-attached">
|
||||||
<p> Artisans associés : <?php echo count($user_attached_artisans->posts) ?></p>
|
<p> Artisans associés : <?php echo count($user_attached_artisans->posts) ?></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="required-actions">
|
<!-- <div class="required-actions">
|
||||||
<?php
|
<?php
|
||||||
$total = count($required_actions_artisans->posts);
|
$total = count($required_actions_artisans->posts);
|
||||||
?>
|
?>
|
||||||
|
|
@ -59,7 +60,7 @@ $current_user = wp_get_current_user();
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div> -->
|
||||||
|
|
||||||
<a class="cta cta--button" href="<?php echo home_url('/wp-admin/admin.php?page=gestion-artisans') ?>">Pannel de gestion</a>
|
<a class="cta cta--button" href="<?php echo home_url('/wp-admin/admin.php?page=gestion-artisans') ?>">Pannel de gestion</a>
|
||||||
<?php
|
<?php
|
||||||
Loading…
Reference in New Issue
Block a user