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 | |
public function escapeSvg( string $svg ): string { | |
$svg_args = array( | |
'svg' => array( | |
'xmlns' => true, | |
'id' => true, | |
'class' => true, | |
'style' => true, |
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 | |
// --------------------------------- | |
// File: download.php | |
// Author: Jim Penaloza | |
// Web: http://blog.unijimpe.net | |
// --------------------------------- | |
// verify file | |
if (!isset($_GET['file']) || empty($_GET['file'])) { | |
exit(); |
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 | |
define('WP_USE_THEMES', false); | |
require_once('wp-load.php'); | |
echo 'iniciado proceso.<br />'; | |
/** | |
* Finds product categories ids from array of names given | |
* |
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
/** | |
Appearance > Elements > Add new Hook | |
Hook: after_content | |
Execute PHP: active | |
Display rules: All singular of CPT | |
From: https://generatepress.com/forums/topic/applying-blog-archive-and-single-post-settings-to-custom-type-post/#post-903150 | |
**/ | |
<span class="comments-link"> | |
<?php comments_popup_link( __( 'Leave a comment', 'generatepress' ), __( '1 Comment', 'generatepress' ), __( '% Comments', 'generatepress' ) ); ?> | |
</span> |
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
find . -name "node_modules" -exec rm -rf '{}' + |
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
redirectMatch 301 ^(.*)$ https://www.domain.com$1 | |
</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
#!/bin/bash | |
# | |
# | |
clear | |
for d in * ; do | |
#if [ -e "$d/wp-config.php" ]; then | |
cd "$d" | |
echo "-----------------------------" | |
echo "Updating WordPress in... $d" | |
wp core update |
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
<script>fbq('track', 'Lead');</script> |
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 | |
ini_set( 'memory_limit', '1024M' ); | |
ini_set( 'max_execution_time', 600 ); | |
define( 'WP_USE_THEMES', false ); | |
require_once 'wp-load.php'; | |
echo 'iniciado proceso.' . date( 'H:i:s', time() ) . '<br />'; | |
$weight_final = '1000'; |
NewerOlder