This file contains 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
APP_URL=https://laravel.test | |
APP_SERVICE=laravel.test | |
[...] |
This file contains 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
# Directory Listing | |
Options -Indexes | |
<IfModule mod_security.c> | |
# Server Information Disclosure | |
ServerTokens Prod | |
ServerSignature Off | |
SecServerSignature " " | |
</IfModule> |
This file contains 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 | |
add_filter('gform_entry_meta', 'custom_entry_meta90', 12, 2); | |
function custom_entry_meta90( $entry_meta, $form_id ) { | |
$entry_meta['prioridadNUM'] = array( | |
'label' => 'Prioridad NUM', | |
'is_numeric' => true, | |
'update_entry_meta_callback' => 'update_entry_meta90', | |
'is_default_column' => true, | |
); | |
return $entry_meta; |
This file contains 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 | |
/* | |
*Example Follw:-https://code.tutsplus.com/tutorials/build-a-custom-wordpress-user-flow-part-3-password-reset--cms-23811 | |
*/ | |
// Create the custom pages at plugin activation | |
register_activation_hook( __FILE__, 'dgm_plugin_activated' ); | |
function dgm_plugin_activated() { | |
// Information needed for creating the plugin's pages | |
$page_definitions = array( |
This file contains 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 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/ | |
*/ |
This file contains 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: Rewrite Wordpress uploads URLs | |
* Plugin URI: https://permalinkmanager.pro?utm_source=plugin | |
* Description: Replace /wp-content/uploads/YYYY/MM/ with different directory | |
* Version: 1.0.0 | |
* Author: Maciej Bis | |
* Author URI: http://maciejbis.net/ | |
* License: GPL-2.0+ | |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
This file contains 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 Events Calendar - Event Aggregator: hijack event time zone before import | |
* Must change code to accomodate your desired time zone | |
* | |
* From https://gist.github.com/cliffordp/f2cf6b3ce9f33c7ff17988c824d67e21 | |
* | |
* By Nico 2017-01-12 | |
*/ |
This file contains 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 | |
/******************************************/ | |
// db_utf8_fix.php // | |
// Original author: J. van Hemert // | |
// Original Date: 26-10-2011 // | |
// // | |
// Fixes encoding when utf-8-encoded data // | |
// is stored in tables with other (e.g. // | |
// latin_swedish_ci) encoding. // | |
// Will convert all columns in all tables // |
This file contains 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 // Don't use this line. | |
/** | |
* This function will connect wp_mail to your authenticated | |
* SMTP server. This improves reliability of wp_mail, and | |
* avoids many potential problems. | |
* | |
* Values are constants set in wp-config.php | |
*/ | |
add_action( 'phpmailer_init', 'send_smtp_email' ); |
This file contains 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 | |
/** | |
* Pull.php: | |
* Version control your MODX site using git. | |
* Pulls changes from git and processes database changes in changesets. | |
* | |
* Authors: | |
* Jeroen Kenters / www.kenters.com | |
* Bert Oost / www.oostdesign.com | |
* |
NewerOlder