To install Wordfence CLI, use the following command:
pip install wordfence
<?php | |
/* | |
Plugin Name: My CLI Commands | |
Plugin URI: # | |
Description: | |
Author: WC Pune Team | |
Version: 1.0.0 | |
Author URI: https://pune.wordcamp.org | |
*/ |
### file to edit \usr\local\apache\conf.d\empty.conf | |
### Caching, compress and some security added thanks to https://www.gebruikers.eu | |
# Load mod_deflate.so only if it is not previously enabled, check httpd.conf for this. | |
# In my case it wasn't enabled. I prefer this empty.conf to load mod_deflate so my config survives updates and rebuilds. | |
LoadModule deflate_module modules/mod_deflate.so | |
<Location /> | |
# Insert filter | |
SetOutputFilter DEFLATE |
<?php | |
/* | |
Plugin Name: Better AMP Mod : Multiple Analytics Code | |
Plugin URI: https://www.whoisabhi.com/ | |
Description: Update your Analytics Code in this file below. Replicate Triggers if you need multiple Trackers. | |
Author: Abhishek | |
Version: 1.0 | |
Author URI: https://www.whoisabhi.com/ | |
*/ |
add_filter( 'woocommerce_available_payment_gateways', 'wpmudra_payment_gateway_disable_country' ); | |
function wpmudra_payment_gateway_disable_country( $available_gateways ) { | |
if ( is_admin() ) return $available_gateways; | |
if ( isset( $available_gateways['paypal'] ) && WC()->customer->get_billing_country() == 'IN' ) { | |
unset( $available_gateways['paypal'] ); | |
} | |
return $available_gateways; |
<ol><?php | |
$link = mysqli_connect("localhost","Username","Password","DBNameHere"); | |
$sql = "SELECT `meta_id`,`post_id`,`meta_key`,Length(`meta_value`) as meta_data, `post_title`, `post_type` FROM `wp_postmeta` LEFT JOIN `wp_posts` on `wp_postmeta`.`post_id` = `wp_posts`.`ID` ORDER BY `wp_posts`.`post_title` ASC "; | |
$result = mysqli_query($link, $sql); | |
while($data = mysqli_fetch_assoc($result)){ | |
if($data['post_title'] == NULL && $data['post_type'] == NULL){ |
/* | |
* Adding Align wide support for Gutenberg | |
*/ | |
add_theme_support( 'align-wide' ); | |
/* | |
* Adding Blocks Style for Gutenberg | |
*/ |
.has-regular-font-size { | |
font-size: 16px; | |
} | |
@media only screen and (min-width: 768px) { | |
.alignfull { | |
margin-left: calc(50% - 50vw); | |
margin-right: calc(50% - 50vw); | |
width: auto; |
brew services start php | |
sudo brew services start dnsmasq | |
brew services start mariadb | |
brew services start nginx |
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ../../peenak android-release-unsigned.apk key0 | |
~/Library/Android/sdk/build-tools/28.0.3/zipalign -v 4 android-release-unsigned.apk release.apk |