PluginProbe ʕ •ᴥ•ʔ
Tracking Code Manager / 1.5
Tracking Code Manager v1.5
trunk 1.11.8 1.11.9 1.12.0 1.12.1 1.12.2 1.12.3 1.4 1.5 2.0.0 2.0.1 2.0.13 2.0.14 2.0.15 2.0.16 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.1.0 2.2.0 2.3.0 2.4.0 2.5.0 2.6.0
tracking-code-manager / includes / core.php
tracking-code-manager / includes Last commit date
admin 11 years ago actions.php 11 years ago class-TCM-check.php 11 years ago class-TCM-cron.php 11 years ago class-TCM-form.php 11 years ago class-TCM-language.php 11 years ago class-TCM-logger.php 11 years ago class-TCM-manager.php 11 years ago class-TCM-options.php 11 years ago class-TCM-tracking.php 11 years ago class-TCM-utils.php 11 years ago core.php 11 years ago install.php 11 years ago uninstall.php 11 years ago
core.php
26 lines
1 <?php
2 //per agganciarsi ogni volta che viene scritto un contenuto
3 add_filter('wp_head', 'tcm_head');
4 function tcm_head(){
5 global $post, $tcm;
6
7 $tcm->Options->setPostShown(NULL);
8 if(is_page($post->ID) || is_single($post->ID)) {
9 $tcm->Options->setPostShown($post);
10 $tcm->Logger->info('POST ID=%s IS SHOWN', $post->ID);
11 }
12
13 //future development
14 //is_archive();
15 //is_post_type_archive();
16 //is_post_type_hierarchical();
17 //is_attachment();
18 $tcm->Manager->writeCodes(TCM_POSITION_HEAD);
19 }
20 add_action('wp_footer', 'tcm_footer');
21 function tcm_footer() {
22 global $tcm;
23 //there isn't a hook when <BODY> starts
24 $tcm->Manager->writeCodes(TCM_POSITION_BODY);
25 $tcm->Manager->writeCodes(TCM_POSITION_FOOTER);
26 }