# Slash al final RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !# RewriteCond %{REQUEST_URI} !(.*)/$ RewriteRule ^(.*)$ https://yourdomain.com/$1/ [L,R=301] # END Slash al finalContinue reading
/** * WPCode Snippet: get_page_by_title Compatibility Helper * * This snippet provides a backward-compatible replacement for the deprecated * get_page_by_title() function that was removed in WordPress 6.2.0 * * To use this snippet: * 1. Go to WPCode > +…Continue reading
add_action(‘admin_head’, function () { echo ‘ ‘; });Continue reading
add_action( ‘init’, ‘export_all_completed_orders_test’ ); function export_all_completed_orders_test() { if ( isset( $_GET[‘export_customers’] ) && $_GET[‘export_customers’] === ‘1’ ) { if ( ! current_user_can( ‘manage_options’ ) ) { wp_die( ‘Access denied’ ); } header( ‘Content-Type: text/csv; charset=utf-8’ ); header( ‘Content-Disposition: attachment; filename=all_completed_orders.csv’…Continue reading