|
@@ -65,33 +65,54 @@ collect(['setup', 'filters'])
|
|
|
});
|
|
|
|
|
|
//ajout des champs personnalisés Minutage et Images; pour les afficher rdv dans le fichier content-single
|
|
|
-function ajout_champs() {
|
|
|
- add_post_meta(get_the_ID(), 'Index', true);
|
|
|
- add_post_meta(get_the_ID(), 'Minutage', true);
|
|
|
- add_post_meta(get_the_ID(), 'Images', true);
|
|
|
- add_post_meta(get_the_ID(), 'BandeSon', true);
|
|
|
- add_post_meta(get_the_ID(), 'Ecrits', true);
|
|
|
- add_post_meta(get_the_ID(), 'VoixOffIn', true);
|
|
|
- add_post_meta(get_the_ID(), 'isMainPart', true);
|
|
|
- add_post_meta(get_the_ID(), 'isSubPart', true);
|
|
|
+//le faire qu'une suele fois et après mettre en commentaire
|
|
|
+// function ajout_champs() {
|
|
|
+// add_post_meta(get_the_ID(), 'Index', true);
|
|
|
+// add_post_meta(get_the_ID(), 'Minutage', true);
|
|
|
+// add_post_meta(get_the_ID(), 'Images', true);
|
|
|
+// add_post_meta(get_the_ID(), 'BandeSon', true);
|
|
|
+// add_post_meta(get_the_ID(), 'Ecrits', true);
|
|
|
+// add_post_meta(get_the_ID(), 'VoixOffIn', true);
|
|
|
+// add_post_meta(get_the_ID(), 'isMainPart', true);
|
|
|
+// add_post_meta(get_the_ID(), 'isSubPart', true);
|
|
|
|
|
|
- }
|
|
|
- add_action('init', 'ajout_champs');
|
|
|
+// }
|
|
|
+// add_action('init', 'ajout_champs');
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
-/*
|
|
|
-function supprimer_tous_les_articles() {
|
|
|
- $args = array(
|
|
|
- 'post_type' => 'post',
|
|
|
- 'posts_per_page' => -1,
|
|
|
- );
|
|
|
-
|
|
|
- $posts = get_posts($args);
|
|
|
+ function cacher_bloc_head_admin() {
|
|
|
+ // Cache le bloc head du plugin de PublicPress
|
|
|
+ echo '<style>.pp-version-notice-bold-purple { display: none; }</style>';
|
|
|
+ echo '<style>.notice-warning { display: none; }</style>';
|
|
|
|
|
|
- foreach ($posts as $post) {
|
|
|
- wp_delete_post($post->ID, true);
|
|
|
}
|
|
|
-}
|
|
|
- add_action('init', 'supprimer_tous_les_articles');
|
|
|
-*/
|
|
|
+ add_action('admin_head', 'cacher_bloc_head_admin');
|
|
|
+
|
|
|
+ function cacher_bloc_foot_admin() {
|
|
|
+ // Cache le bloc foot du plugin de PublicPress
|
|
|
+ echo '<style>.pp-rating { display: none; }</style>';
|
|
|
+ echo '<style>.pp-pressshack-logo { display: none; }</style>';
|
|
|
+ echo '<style> footer nav{ display: none; }</style>';
|
|
|
+ echo '<style> ul.subsubsub li:nth-child(1) a { display: none;}</style>';
|
|
|
+
|
|
|
+ }
|
|
|
+ add_action('admin_footer', 'cacher_bloc_foot_admin');
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+// function supprimer_tous_les_articles() {
|
|
|
+// $args = array(
|
|
|
+// 'post_type' => 'post',
|
|
|
+// 'posts_per_page' => -1,
|
|
|
+// );
|
|
|
+
|
|
|
+// $posts = get_posts($args);
|
|
|
+
|
|
|
+// foreach ($posts as $post) {
|
|
|
+// wp_delete_post($post->ID, true);
|
|
|
+// }
|
|
|
+// }
|
|
|
+// add_action('init', 'supprimer_tous_les_articles');
|