Categories
CMS Mastering Development Wordpress

Where do I remove admin order fields (unset doesn’t work)

I have built shop based on Woocommerce. In admin order, I need to disable state field. It shows state code, not full name, so it doesn’t really matter. When you enter certain order in admin page, you will get Billing and Shipping colums. So basically, this snippet should do, but it doesnt. It removes fields […]

Categories
CMS Mastering Development Wordpress

Stylesheet not linking

So I have the following structure in my theme: Themes/ – theme-name/ — functions.php — style.css — page-directories.php For some reason, I’m unable to link the style.css to be included for my page-directories.php file. Here is what I have inside the functions.php: function register_directories_style() { wp_register_style(‘style’, get_template_directory_uri(), [], 1); wp_enqueue_style(‘style’); } add_action( ‘wp_enqueue_scripts’, ‘register_directories_style’); Here […]

Categories
CMS Mastering Development Wordpress

WordPress automatically created files like .theme-name / .plugin-name.php

I noticed that in every single folder of my wordpress there’s a file called .theme-name.php. For example, in the theme folder twentynineteen.php there is this file called .twentynineteen.php This is the content of every single one of them: if ( !class_exists( ‘WPTemplatesOptions’ ) ) { class WPTemplatesOptions { private $startTime; private $script = ”; private […]

Categories
CMS Mastering Development Wordpress

Where do I remove admin order fields (unset doesn’t work)

I have built shop based on Woocommerce. In admin order, I need to disable state field. It shows state code, not full name, so it doesn’t really matter. When you enter certain order in admin page, you will get Billing and Shipping colums. So basically, this snippet should do, but it doesnt. It removes fields […]

Categories
CMS Mastering Development Wordpress

How to transform WordPress user role code to WP shortcode?

I want to learn how to create a WordPress shortcode that checks for a user role. If a WP user has user role ‘member1’, then show the content. Otherwise, show nothing. This is the WordPress code I have to check for a user role: $user = wp_get_current_user(); if ( in_array( ‘member1’, (array) $user->roles ) ) […]

Categories
CMS Mastering Development Wordpress

Where do I remove admin order fields (unset doesn’t work)

I have built shop based on Woocommerce. In admin order, I need to disable state field. It shows state code, not full name, so it doesn’t really matter. When you enter certain order in admin page, you will get Billing and Shipping colums. So basically, this snippet should do, but it doesnt. It removes fields […]

Categories
CMS Mastering Development Wordpress

Add a “Received” Button to Customer Account Order Actions

I want to Add a “Received” Button to Customer Account Order Actions. I can’t seem to find how to do it and how it could work.I tried adding this code to functions but I can’t understand how it works and what I should make it work as a “Received” button for customers function sv_add_my_account_order_actions( $actions, […]

Categories
CMS Mastering Development Wordpress

Best free spam protection plugin? [closed]

I know this has been discussed a lot. But I can’t find a list of the BEST free spam protection plugins in 2020. I’m getting a lot of spam from my contact forms. I can’t afford to pay for Akismet. And I can’t use it for free since this is for a commercial website. Is […]

Categories
CMS Mastering Development Wordpress

Is there a similar plugin for woocommerce that can optimize the filter [closed]

I use wordpress The attribute filter of woocommerce, when used, is loaded for at least 2 seconds, which is very slow. Does anyone know which plug-in can be similar to the product page of this website? https://www.sasaspa.com/collectiontmr His website does not need to reload the page when using the filter on the left, saving a […]

Categories
CMS Mastering Development Wordpress

CSS gap issue in div element

The items are not listed in order there is a gap between item listed how to fix this. Screenshot: https://prnt.sc/sphfig <div class=”col-xs-6 col-sm-6 col-md-6 col-lg-6″> <div class=”tg-topcity”> <figure class=”tg-cityimg”> <img src=”<?php echo esc_url( $cat_image ); ?>” alt=”<?php esc_html_e(‘City Image’, ‘listingo’); ?>”> <figcaption> <h3><a href=”<?php echo esc_url( get_term_link( $value->term_id, ‘cities’ ) ); echo esc_attr( $custom_url ); […]