Changeset 2427460
- Timestamp:
- 11/27/2020 07:12:33 PM (5 years ago)
- File:
-
- 1 edited
-
brocardi/trunk/brocardi_plugin.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
brocardi/trunk/brocardi_plugin.php
r2427418 r2427460 27 27 add_action('init', 'create_brocardi_news'); 28 28 29 29 //rimuoviamo dati sull'autore del post nelle pagine archivi e post di brocardi 30 function my_functionbr( $query ){ 31 if( is_post_type_archive( 'brocardi_news' ) ) { 32 echo '<style> 33 .entry-meta{ display: none;} 34 </style>'; 35 } 36 if( is_singular( 'brocardi_news' ) ){ 37 echo '<style> 38 .entry-meta{ display: none; visibility:hidden;} 39 </style>'; 40 } 41 } 42 add_action( 'wp_head', 'my_functionbr' ); 30 43 31 44 add_action('init', 'azzera_cron'); 32 33 45 function azzera_cron(){ 34 46 $date = date("Y-m-d", strtotime('-2 day')); … … 41 53 } 42 54 } 43 44 55 45 56 add_action('init', 'cancella_brocardi_news'); … … 95 106 function BP_myfunc( $canonical_url, $post ){ 96 107 if( is_singular( 'brocardi_news' ) ) { 97 echo '<style>98 .entry-meta{ display: none; visibility:hidden;}99 </style>';100 108 $post_id = get_the_ID(); 101 109 if($link = get_post_meta( $post_id, 'brocardi_link', true ) ){
Note: See TracChangeset
for help on using the changeset viewer.