Guest User

Untitled

a guest
Mar 18th, 2016
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. add_action( 'amp_post_template_head', 'process_AMP_counter' );
  2. function process_AMP_counter() {
  3. global $post;
  4. if (class_exists( 'td_page_views' )) {
  5. if (td_util::get_option('tds_p_show_views') != 'hide') {
  6. td_page_views::update_page_views($post->ID);
  7. }
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment