This file contains hidden or 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
    
  
  
    
  | function sp_gtag_cd_categories_cf($html) { | |
| return "'dimension2': 'cd_categories',"; | |
| } | |
| add_filter('seopress_gtag_cd_categories_cf', 'sp_gtag_cd_categories_cf'); | |
| function sp_gtag_cd_categories_ev($html) { | |
| return "gtag('event', '".__('Categories','wp-seopress')."', {'cd_categories': '".$get_first_category."'});"; | |
| } | |
| add_filter('seopress_gtag_cd_categories_ev', 'sp_gtag_cd_categories_ev'); | 
  
    
      This file contains hidden or 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
    
  
  
    
  | function sp_metaboxe_content_analysis($seopress_get_post_types) { | |
| //Post types array, eg: post and page, notice the array_flip to convert values to keys | |
| $seopress_get_post_types = array_flip(array('post','page')); | |
| return $seopress_get_post_types; | |
| } | |
| add_filter('seopress_metaboxe_content_analysis', 'sp_metaboxe_content_analysis'); | 
  
    
      This file contains hidden or 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
    
  
  
    
  | function sp_dublin_core_desc($html) { | |
| //you can add here all your conditions as if is_page(), is_category() etc.. | |
| $html = '<meta name="dc.description" content="my awesome description" /> '; | |
| return $html; | |
| } | |
| add_filter('seopress_dublin_core_desc', 'sp_dublin_core_desc'); | 
  
    
      This file contains hidden or 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
    
  
  
    
  | function sp_dublin_core_relation($html) { | |
| //you can add here all your conditions as if is_page(), is_category() etc.. | |
| $html = '<meta name="dc.relation" content="https://www.seopress.org/" />'; | |
| return $html; | |
| } | |
| add_filter('seopress_dublin_core_relation', 'sp_dublin_core_relation'); | 
  
    
      This file contains hidden or 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
    
  
  
    
  | function sp_dublin_core_source($html) { | |
| //you can add here all your conditions as if is_page(), is_category() etc.. | |
| $html = '<meta name="dc.source" content="https://www.seopress.org/" />'; | |
| return $html; | |
| } | |
| add_filter('seopress_dublin_core_source', 'sp_dublin_core_source'); | 
  
    
      This file contains hidden or 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
    
  
  
    
  | function sp_dublin_core_title($html) { | |
| //you can add here all your conditions as if is_page(), is_category() etc.. | |
| $html = '<meta name="dc.title" content="my awesome title" />'; | |
| return $html; | |
| } | |
| add_filter('seopress_dublin_core_title', 'sp_dublin_core_title'); | 
  
    
      This file contains hidden or 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
    
  
  
    
  | function sp_excerpt_length($html) { | |
| //default: 50 words | |
| $html = 100; | |
| return $html; | |
| } | |
| add_filter('seopress_excerpt_length', 'sp_excerpt_length'); | 
  
    
      This file contains hidden or 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
    
  
  
    
  | function sp_gtag_outbound_tracking_ev($html) { | |
| return "jQuery(document).ready(function() { | |
| jQuery('a').filter(function() { | |
| return this.href.match(/(?:\/".seopress_google_analytics_affiliate_tracking_option()."\/)/gi); | |
| }).click(function(e){ | |
| gtag('event', 'click', {'event_category': 'outbound/affiliate','event_label' : this.href}); | |
| }); | |
| }); | |
| "; | |
| } | 
  
    
      This file contains hidden or 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
    
  
  
    
  | function sp_gtag_download_tracking_ev($html) { | |
| return "jQuery(document).ready(function() { | |
| jQuery('a').filter(function() { | |
| return this.href.match(/.*\.(pdf|docx|xlsx)(\?.*)?$/); }).click(function(e) { | |
| gtag('event', 'click', {'event_category': 'downloads','event_label' : this.href}); | |
| }); | |
| }); | |
| "; | |
| } | |
| add_filter('seopress_gtag_download_tracking_ev', 'sp_gtag_download_tracking_ev'); | 
  
    
      This file contains hidden or 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
    
  
  
    
  | function sp_gtag_linker($html) { | |
| return "'linker': {'domains': ['https://www.example.com/']},"; | |
| } | |
| add_filter('seopress_gtag_linker', 'sp_gtag_linker'); |