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 | |
function whpp_track_post_views($post_id) { | |
if (!is_single()) | |
return; | |
if (empty($post_id)) { | |
global $post; | |
$post_id = $post->ID; | |
} | |
whpp_set_post_views($post_id); |
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 | |
$labels = [ | |
"name" => __('Services', 'text-domain'), | |
//... | |
//... | |
]; | |
$args = [ | |
"label" => __('Services', 'text-domain'), | |
"labels" => $labels, |
NewerOlder