REMOVE debug logging statements from carhop_get_post_card_link_according_to_post_datas function for cleaner code
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
718df5ec1c
commit
928e7af7d8
|
|
@ -493,7 +493,6 @@ function carhop_get_post_card_link_according_to_post_datas($post_id, $card_args
|
|||
$type_analyse_etude = get_the_terms($post_id, 'type-analyse-etude')[0] ?? null;
|
||||
|
||||
if ($type_analyse_etude->slug === 'analyse') {
|
||||
write_log("######");
|
||||
$link_type = get_field('link_type', $post_id);
|
||||
|
||||
switch ($link_type) {
|
||||
|
|
@ -522,7 +521,6 @@ function carhop_get_post_card_link_according_to_post_datas($post_id, $card_args
|
|||
|
||||
case 'dbmob':
|
||||
$maitron_url = get_field('maitron_url', $post_id);
|
||||
write_log($maitron_url);
|
||||
$link = $maitron_url ?? get_the_permalink($post_id);
|
||||
$target = '_blank';
|
||||
$text = 'Voir la notice';
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user