This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Message pour formulaire de commentaires offert par : http://www.mister-wp.com/code/comment-form-message-jetpack/ */ | |
| #myCommentPolicy { | |
| border:1px solid #CCC; | |
| padding:5px 20px; | |
| border-radius:20px; | |
| background-color:#FFF; | |
| margin-bottom:25px; | |
| font-size:13px; | |
| line-height:1.5em; | |
| overflow-y: scroll; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Script to fix permissions of cpanel nobody file and folders | |
| # Written by: Denver Prophit Jr. 03/13/2015 | |
| # https://www.strikehawk.com | |
| for user in `ls -A /var/cpanel/users` | |
| do | |
| HOMEDIR=$(egrep "^${user}:" /etc/passwd | cut -d: -f6) | |
| find $HOMEDIR ! -user $USER -exec chown $USER {} \; | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| Plugin Name: Localisateur de magasin | |
| Description: Ajouter des magasins facilement à une Google Map | |
| Version: 0.1 | |
| License: GPL | |
| Author: Eric VAlois | |
| Author URI: http://bulledev.com | |
| */ | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function show($str){ | |
| echo $str . "<br/>\n"; | |
| flush(); | |
| ob_flush(); | |
| } | |
| $archiveDir = "temp"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| ZIP the /wp-content/ directory from the root folder. | |
| Just put it in your root directory, go to example.com/zip.php, wget from your new server and unzip inside your new wp-content. | |
| The other files have to be get in a freshely downloaded WordPress release. | |
| */ | |
| /* ZIP File name and path */ | |
| $zip_file = 'wp-content.zip'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*-----------------------------------------------------------------------------------*/ | |
| /* WooCommerce - Change Checkout Notes Label and Place Holder Text | |
| /*-----------------------------------------------------------------------------------*/ | |
| // Hook in | |
| add_filter( 'woocommerce_checkout_fields' , 'theme_override_checkout_notes_fields' ); | |
| // Our hooked in function - $fields is passed via the filter! | |
| function theme_override_checkout_notes_fields( $fields ) { | |
| $fields['order']['order_comments']['placeholder'] = 'Add some order notes or a gift message here.'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Plugin Name: Disable Updates | |
| * Description: This Must Use plugin is just here to prevent broken webistes. It can easyly be disabled by remove the mu-plugin/disable-updates.php in /wp-content/. Credit : https://www.mister-wp.com :-) | |
| * Author: Mister WordPress | |
| * License: GNU General Public License v3 or later | |
| * License URI: http://www.gnu.org/licenses/gpl-3.0.html | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * The main plugin file | |
| * | |
| * @package WordPress_Plugins | |
| * @subpackage OS_Disable_WordPress_Updates | |
| */ | |
| /* | |
| Plugin Name: Disable All WordPress Updates |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Disables repeat purchase for products / variations | |
| * | |
| * @param bool $purchasable true if product can be purchased | |
| * @param \WC_Product $product the WooCommerce product | |
| * @return bool $purchasable the updated is_purchasable check | |
| */ | |
| function sv_disable_repeat_purchase( $purchasable, $product ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * @package WP Custom Post Type Feed | |
| * @version 0.1 | |
| */ | |
| /* | |
| Plugin Name: WP Custom Post Type Feed | |
| Plugin URI: https://www.easyhoster.com/probleme-indexation/ | |
| Description: Create RSS Feed for WordPress Pages & Custom Post Types | |
| Author: EasyHoster |
OlderNewer