Category : wordpress

After many days of searching. I began to investigate using the "top" command the resources that consumed the most CPU on my server. I made a strace of several processes that consumed a lot. And I got a lot of failed lstat, from directories that don’t exist. I leave you an example: domain.com/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/Domain/Services/../../../blocks.ini", 0x7ffdd77cdc00) = ..

Read more

I followed following steps: Install wordpress on public_html/w directory Updated site url to http://example.com and left wordpress url untouched as http://example.com/w Copied .htaccess and index.php modified index.php and updated to require( dirname( __FILE__ ) . ‘/w/wp-blog-header.php’ ); Now, elementor is looking the uploads into https://example.com/w/w/wp-content/uploads/file-copy.jpg Already tried regenerating css but still the same issue, how ..

Read more

I am trying to add a few columns to the WooCommerce > my account > orders page. So far the code below adds more than one column but the content of the columns are not showing, where I’m I getting it wrong? add_filter( ‘woocommerce_account_orders_columns’, ‘add_account_orders_column’, 10, 1 ); function add_account_orders_column( $columns ){ unset($columns[‘order-total’]); $columns[‘custom-column’] = ..

Read more

We try to display a custom text only on some specific products. I know that we can target the products in a array via post ID. However, it does not work with my code below. Can someone tell me how to proper write such a snipped? add_filter( ‘woocommerce_before_add_to_cart_button’, ‘custom_text_before_add_to_cart_btn’, 1000, 3 ); function custom_text_before_add_to_cart_btn( $product ..

Read more