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 | |
require_once('./wp-load.php'); | |
$per_page = 5000; | |
$page = isset($_GET['page']) ? intval($_GET['page']) : 1; | |
$args = array( | |
'post_type' => 'attachment', | |
'post_status' => 'inherit', | |
'posts_per_page' => $per_page, |
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 | |
# Change directory to /home | |
cd /home | |
# Iterate through all users directories | |
for user in * ; do | |
# For every webapp under the user directory | |
# Count wp-config files to make sure its Wordpess |
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
function custom_wc_add_buy_now_button_single_before() { | |
echo '<div id="cart-action-wrapper">'; | |
} | |
add_action( 'woocommerce_before_add_to_cart_button', 'custom_wc_add_buy_now_button_single_before' ); | |
function custom_wc_add_buy_now_button_single_after() | |
{ | |
global $product; | |
$current_product_id = get_the_ID(); | |
$product = wc_get_product( $current_product_id ); | |
$checkout_url = WC()->cart->get_checkout_url(); |
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 | |
# Change directory to /home | |
cd /home | |
# Iterate through all users directories | |
for user in * ; do | |
# For every webapp under the user directory | |
# Count wp-config files to make sure its Wordpess |