Skip to content

Instantly share code, notes, and snippets.

@johnmontfx
Created September 22, 2016 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnmontfx/a2f9c085f738c3f73c421c226a03a37d to your computer and use it in GitHub Desktop.
Save johnmontfx/a2f9c085f738c3f73c421c226a03a37d to your computer and use it in GitHub Desktop.
Modification of file to allow more friendly filtering for custom functions for Social Warfare WordPress Function
// This begins around line 148 of the file
// Queue up our header hook function
if( is_swp_registered() ):
add_filter( 'swp_meta_tags' , 'swp_open_graph_tags' , 2 );
add_filter( 'swp_meta_tags' , 'swp_add_twitter_card' , 4 );
endif;
add_filter( 'swp_meta_tags' , 'swp_frame_buster' , 6 );
add_filter( 'swp_meta_tags' , 'swp_output_custom_color' , 8 );
add_filter( 'swp_meta_tags' , 'swp_output_font_css' , 10 );
// add_filter( 'swp_meta_tags' , 'swp_output_cache_trigger' , 6 );
add_filter( 'swp_meta_tags' , 'swp_cache_rebuild_rel_canonical' , 12 );
add_action( 'admin_head' , 'swp_output_font_css' , 14);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment