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
- Handle: cookie-law-info, cookie-law-info-gdpr - CSS/JS for Cookie Privacy plugin | |
- Handle: jetpack-photon: Jetpack CDN | |
- to be continued |
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 smart_seo_redirect(){ | |
if ( isset($_SERVER['HTTP_REFERER']) ){ | |
$referrer = $_SERVER['HTTP_REFERER']; | |
$parse = parse_url($referrer); | |
$referrer = $parse['host']; | |
$matches = []; | |
$matches[]= preg_match('/cool_referral_name/', $referrer, $matches); |
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 add_rich_snippets_content( $content ) { | |
global $post; | |
$post_ID = $post->ID; | |
$page_title = get_the_title ( $post_ID ); | |
$page_object = get_post( $post_ID ); | |
$page_excerpt = wp_strip_all_tags ( $page_object->post_content ); | |
$page_excerpt = preg_split ("/\s/", $page_excerpt); |
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
- fai.informazione.it (basta registrarsi gratuitamente) | |
- recesiti.wordpress.com (info [email protected]) | |
- leultime.info (info [email protected]) | |
- medium.com (basta registrarsi) | |
- linkedin.com (c'è un blog pubblico che si può attivare) | |
- comunicati.net (basta registrarsi) | |
- contenutigratis.altervista.org (basta registrarsi, soggetto a moderazione) | |
- comunicati-stampa.net (basta registrarsi, soggetto a moderazione) |
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
* Enumerate Users | |
wp-json/wp/v2/users | |
- Example | |
curl https://example.com/wp-json/wp/v2/users |
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
jQuery(document).ready(function( $ ){ | |
//track single link | |
var original_link1 = jQuery("a#single").attr('href'); | |
jQuery(elem).attr('href', original_link + '?utm_source=A&utm_medium=B&utm_campaign=C'); | |
//track multi-links | |
var link_group_identifier = 'a.group'; | |
jQuery( link_group_identifier ).each(function(i, elem) { | |
var original_link = jQuery(elem).attr('href'); |
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
<meta property="og:locale" content="it_IT" /> | |
<meta property="og:type" content="article" /> | |
<meta property="og:title" content="Questo apparirà come titolo - This is title" /> | |
<meta property="og:description" content="This is description - Questa invece sarà la descrizione del link corrispondente a questa pagina." /> | |
<meta property="og:url" content="https://url.sito/path/" /> | |
<meta property="og:site_name" content="URL Sito" /> | |
<meta property="article:author" content="https://www.facebook.com/pippo.pappo" /> | |
<meta property="og:image" content="http://static01.nyt.com/images/2015/02/19/arts/international/19iht-btnumbers19A/the_image_you_like.jpg" /> |
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
deny from all | |
allow from YOUR_IP_ADDRESS |
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
Python, Perl and PHP open source HTML parsers. Useful for HTML traversing, parsing and scraping. |