View mu-sanitize-filename.php
<?php if (!defined('ABSPATH')) die('Restricted Area'); | |
/* | |
* Plugin Name: Sanitize File Name | |
* Description: Clean file name when uploading files in WordPress. | |
* Version: 20180218 | |
* Author: Mickaël Gris (Neticpro) | |
* Author URI: https://wpchannel.com/renommer-automatiquement-fichiers-accentues-wordpress/ | |
*/ |
View mu-yoast-seo-disable-notifications.php
<?php if (!defined('ABSPATH')) die('Restricted Area'); | |
/* | |
* Plugin Name: Disable Yoast SEO Notifications | |
* Description: Hide annoying notifications after each upgrade of Yoast SEO plugin and others admin notices. | |
* Version: 1.1 | |
* Author: Aurélien Denis | |
* Author URI: https://wpchannel.com/ | |
*/ |
View filter-wordpress-recent-posts-widget.php
function wpc_filter_recent_posts_widget_parameters($params) { | |
$params['orderby'] = 'date'; | |
$params['tax_query'] = array( | |
array( | |
'taxonomy' => 'post_format', | |
'field' => 'slug', | |
'terms' => array('post-format-movie', 'post-format-aside'), | |
'operator' => 'NOT IN' | |
) | |
); |
View mu-gravity-forms.php
<?php if (!defined('ABSPATH')) die('Restricted Area'); | |
/* | |
* Plugin Name: Gravity Forms Enhancements | |
* Description: Tweaks for Gravity Forms plugin. | |
* Version: 20191102 | |
* Author: Aurélien Denis | |
* Author URI: https://wpchannel.com/ | |
*/ |
View wp_list_children_terms.php
<?php | |
$queried_object = get_queried_object(); | |
$taxonomy = $queried_object->taxonomy; | |
$term_id = $queried_object->term_id; | |
$taxonomy_name = 'category'; | |
$term_children = get_term_children($term_id, $taxonomy_name); | |
echo '<ul class="nav nav-pills">'; | |
foreach ($term_children as $child) { | |
$term = get_term_by('id', $child, $taxonomy_name); |
View wp_has_children_pages.php
<?php | |
$parent_ID = $post->post_parent ? @ array_pop(get_post_ancestors($post)) : $post->ID; | |
$children = wp_list_pages( | |
array( | |
'child_of' => $parent_ID, | |
'title_li' => '', | |
'echo' => false, | |
) | |
); | |
?> |
View mu-unregister-taxonomies.php
<?php if (!defined('ABSPATH')) die('Restricted Area'); | |
/* | |
* Plugin Name: Unregister Taxonomies | |
* Description: Properly disable any WordPress taxonomy. | |
* Version: 20160901 | |
* Author: Aurélien Denis (Neticpro) | |
* Author URI: https://wpchannel.com/desactiver-taxonomie-type-de-contenu-personnalise/ | |
*/ |
View mu-disable-woocommerce-notice.php
/* Disable WooCommerce.com Account Notice */ | |
add_filter('woocommerce_helper_suppress_admin_notices', '__return_true'); |
View wpc-woocommerce-scripts.php
function wpc_dequeue_woocommerce_styles_scripts() { | |
if (function_exists('is_woocommerce')) { | |
if (! is_woocommerce() && ! is_cart() && ! is_checkout() && ! is_account_page()) { | |
wp_dequeue_style('woocommerce-general'); | |
wp_dequeue_style('woocommerce-layout'); | |
wp_dequeue_style('woocommerce-smallscreen'); | |
wp_dequeue_script('wc_price_slider'); | |
wp_dequeue_script('wc-single-product'); | |
wp_dequeue_script('wc-add-to-cart'); |
View mu-disable-password-notification.php
/* Disable User Password Change Notification */ | |
add_filter('send_password_change_email', '__return_false'); | |
/* Disable Admin Password Change Notification */ | |
remove_action('after_password_reset', 'wp_password_change_notification'); |
NewerOlder