exclude the plugin code from image.php
-
How to exclude the plugin code only from image.php ?
The plugin code is not needed there, it just automatically goes through <?php wp_head(); ?>
example<!-- WordPress Popular Posts v3.3.4 --> <script type="text/javascript"> var sampling_active = 0; var sampling_rate = 100; var do_request = false; if ( !sampling_active ) { do_request = true; } else { var num = Math.floor(Math.random() * sampling_rate) + 1; do_request = ( 1 === num ); } if ( do_request ) { /* Create XMLHttpRequest object and set variables */ var xhr = ( window.XMLHttpRequest ) ? new XMLHttpRequest() : new ActiveXObject( "Microsoft.XMLHTTP" ), url = 'http://sete,com/wp-admin/admin-ajax.php', params = 'action=update_views_ajax&token=8d80d656bf&wpp_id=24861'; /* Set request method and target URL */ xhr.open( "POST", url, true ); /* Set request header */ xhr.setRequestHeader( "Content-type", "application/x-www-form-urlencoded" ); /* Hook into onreadystatechange */ xhr.onreadystatechange = function() { if ( 4 === xhr.readyState && 200 === xhr.status ) { if ( window.console && window.console.log ) { window.console.log( xhr.responseText ); } } }; /* Send request */ xhr.send( params ); } </script> <!-- End WordPress Popular Posts v3.3.4 -->- This topic was modified 1 day, 3 hours ago by kolshix.
- You must be logged in to reply to this topic.