Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'amp_post_template_head', 'process_AMP_counter' );
- function process_AMP_counter() {
- global $post;
- if (class_exists( 'td_page_views' )) {
- if (td_util::get_option('tds_p_show_views') != 'hide') {
- td_page_views::update_page_views($post->ID);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment