Skip to main content
16 votes
Accepted

Is it possible to add custom fields to a WooCommerce attribute term?

Yes, it is possible. And there's an easy guide here. Below is a working code you can add to the theme's main functions.php file: // Adds a custom rule type. add_filter( 'acf/location/rule_types', ...
Sally CJ's user avatar
  • 39.2k
5 votes
Accepted

How to Implement "Notice: This theme recommands the following plugin:xyz" in wordpress?

TGM-Plugin-Activation library is the best choice for installing required plugin.
Mostafa Soufi's user avatar
3 votes

How can I implement a notification system in wordpress?

If you look through the definition of wp_insert_post(), you'll see do_action( 'wp_insert_post', $post_ID, $post, $update ); at the end of it. So you can hook into this and perform whatever task you ...
Aniruddha Gawade's user avatar
3 votes

Create a plugin from within Wordpress

Why would anybody create such a tool? Creating a plugin is really easy: At its simplest, a WordPress plugin is a PHP file with a WordPress plugin header comment. Here is the plugin header: <?...
Mihai Papuc's user avatar
3 votes

How to restrict an entire WordPress site to visitors, but the register and login page?

Below code will work with WordPress default login/register screens: add_action( 'wp', 'member_only_site' ); function member_only_site( ) { if ( ! is_user_logged_in( ) ) { auth_redirect()...
Prasad Nevase's user avatar
2 votes
Accepted

How to automatically add edit link on frontpage post of any wordpress theme?

As lot of themes use the_content() to display the post content. you can use the_content filter hook to add the edit link before/after the content. Since you want this work outside themes, you have to ...
Ahmed Fouad's user avatar
  • 1,343
2 votes
Accepted

How to link 2 categories (Sync)

Place this in your theme functions: function mysite_clone_post($post_id, $post, $update) { if(!$update && in_category('home cat', $post)) { //not handled updates and will only run if in ...
inarilo's user avatar
  • 1,020
2 votes
Accepted

Can I use Symfony components in a plugin that I want to submit to the WordPress plugin repository?

Yes, Symfony components are licensed under MIT these days. They are compatible with GPL, which is a requirement of the official WP repository. Do note that as number of plugins using common PHP ...
Rarst's user avatar
  • 99.7k
2 votes

How to move 1 WP site from a mult-site environment to a different multi-site area

If you know how WordPress is structured internally it should not be too hard. Here are the steps: For your site to migrate create a new site in the WordPress multisite environment (the information in ...
Blackbam's user avatar
  • 535
1 vote
Accepted

Wordpress site server getting blocked due to resource abuse

I don't know if anyone can provide a complete answer without digging in to your specifics but the following may be helpful - Looking at the database log file sent by Namecheap they appear to be ...
davidgo's user avatar
  • 212
1 vote
Accepted

How to make a customize role and view a specific plugins base on that role?

You can a custom admin page with add_menu_page function. The function has a argument $capability which you can set the which users will be able to view and access the page add_menu_page https://...
BenB's user avatar
  • 795
1 vote

How do I copy files I downloaded from the wayback machine to my new site?

If you haven't already, you should definitely get in touch ASAP with the support department of your hosting provider. They may have taken regular backups automatically, and could potentially restore ...
deep66's user avatar
  • 11
1 vote

How do I copy files I downloaded from the wayback machine to my new site?

I don't know that you can do that. WP files are stored in the database. The Wayback machine is just a generated version of the files. You need the database. Your hosting place might have a database ...
Rick Hellewell's user avatar
1 vote

How to change email address used for registrations?

Since you bring up SMTP, I'll mention that you'll probably need to make that decision before you decide how you'll handle your "from" addresses because ultimately the direction you go with that will ...
butlerblog's user avatar
  • 4,986
1 vote

Woocommerce plugin for minimum order and add-to-card-step

I think YITH Woocommerce Minimum Maximum Quantity plugin is the best solution for your purpose. It enables you to set a minimum or maximum quantity for product selection. It also shows quantity/amount ...
Md. Ehsanul Haque Kanan's user avatar
1 vote

Auto translate plugin text-domain

I'm not sure about plugins that would do that, but I can definitely recommend this software: https://poedit.net/ It won't translate automatically every phrase, but it suggests pretty accurate string ...
Levi Dulstein's user avatar
1 vote

Secruity Questions on a timer

Since the 'timer' has to execute on the client side, then you will need to find some JavaScript that will 'run' the timer and pop up the box. You can't do this with PHP code (WP filters, hooks, ...
Rick Hellewell's user avatar
1 vote

Make WordPress cache permanent for some pages until edited

In reality it is very hard to know when a page is affected by an edit. A page contains footer, memus, widgets, shorcodes and meta data which might change "globaly". Having a general detection which ...
Mark Kaplun's user avatar
  • 23.4k
1 vote

Create a plugin from within Wordpress

What will happen if a website is hacked ? If anyone can create file it will be a very high security hole. Some Host simple disabled theme and plugin editor for various reason but the first is ...
Benoti's user avatar
  • 2,426
1 vote
Accepted

what is best way to keep track of changes made in wordpress website?

There are many plugins that display the history of changes made by site's users. Personally, I have used Simple History plugin. It is easy to use, have a clear interface and useful log searching ...
Greg36's user avatar
  • 701
1 vote
Accepted

Possible?? Pull Plugin Property Data to a Theme's Custom Post Type

I'm putting this in as an "answer" just to give you pointers on where to start. Once you have specific questions concerning code you'll probably want to ask new questions. First, I'd create a child ...
Michelle's user avatar
  • 3,438
1 vote

Best way to distribute templates and code accross multiple wordpress sites?

You can bundle the files into a plugin. For the Christmas page, you could use the page_template filter - This question gives you an example on how to use it - Create custom page templates with ...
RRikesh's user avatar
  • 5,635
1 vote

How can I create a Quora or Stack Exchange facility without using a specialist theme?

I would go the route of an existing plugin if you're not wanting to do all of the development yourself and wanting to integrate Q&A into an existing site. There are several WordPress plugins ...
Jeremia's user avatar
  • 11
1 vote

Is there a wordpress listserv or email group plugin?

A great WordPress plugin for group discussion via email is WP Mailster. From the plugin description: WP Mailster allows your users to be part of a group and communicate by email without having ...
hbit's user avatar
  • 230

Only top scored, non community-wiki answers of a minimum length are eligible