Skip to main content

Questions tagged [options]

In WP `options` is the term used for variables stored in the database. They are accessed through the options API.

0 votes
1 answer
33 views

How to fix a Wordfence scan that doesn't finish?

I've used Wordfence fo my website on Worpress.org (through hostinger) and my scan yesterday showed me this message: Error writing value for wfsd_engine (MySQLi error: [2006] MySQL server has gone away)...
Noelie M's user avatar
0 votes
1 answer
27 views

WordPress Customizer add_control Dropdown of Pages with Multi Select?

I have a customizer option that simply creates a dropdown populated with pages from the site. I need this dropdown to have the ability for multiple selections? Any ideas? $wp_customize->...
Jon's user avatar
  • 323
0 votes
2 answers
32 views

the function do_settings_section($page) generate error "Allowed memory size of ... bytes exhausted"

I'm creating a plugin to auto delete post/event. I created a WP settings page to manage the default settings for auto delete. I followed each step to register_setting, add_settings_field and ...
imagIne's user avatar
  • 83
0 votes
2 answers
24 views

When to store store plugin options as a single database record?

I'm building the analytics script plugin which offers customizations on a settings page. There will be around 20 options in total. Does it affect the performance negatively if I manage these 20 ...
Ostap Brehin's user avatar
0 votes
0 answers
18 views

Wordpress keeps redirecting to root site after saving any setting

we have the next issue: We are working in our DEV environment: www.oursite.com/blog But everytime we press the "save settings" button, for example, saving changes inside settings/general it ...
JPD's user avatar
  • 13
0 votes
0 answers
36 views

To many WooCommmerce related transients in WordPress options table

I have the following problem on my Wordpress installation. There are too many, hundreds to thousands of transients in the options table. And the options table grows and grows and grows. If I don't ...
ossicom's user avatar
0 votes
1 answer
39 views

Secure way to add JS Script to Wordpress filesystem

EDIT: Because of the answers below i changed the title and explanation for this question. Maybe there are other people who struggle with saftey questions, like me. I am a beginner with Wordpress ...
LovinQuaQua's user avatar
1 vote
1 answer
84 views

Moving uploads directory above wordpress directory. UPLOADS location in parent directory

I will ask for help as I'm going nuts trying to figure out what is going on here. I've read many other questions but there is never a final answer. I want to organize my WP installation in a different ...
Gerard Reches's user avatar
0 votes
0 answers
15 views

Unable to change blog language in multisite

tl;dr No matter what I select in Site Language: After hitting Save this value is always reset to English (United States). Where or what should I be looking for to resolve this? I was playing a ...
trejder's user avatar
  • 322
1 vote
2 answers
44 views

What is the real purpose of the parameter $option_group in the function register_setting()?

We have the following register_setting() function from the Settings API: register_setting( string $option_group, string $option_name, array $args = array() ) I get what the $option_name and the $args ...
Gerard Reches's user avatar
0 votes
2 answers
73 views

Ignore "empty" fields when saving

My WordPress and PHP knowledge is limited, but I am working on a plugin, and in the admin page I have three settings - two text inputs and one checkbox. On save, the values are stored in the ...
mjlu's user avatar
  • 3
0 votes
0 answers
86 views

Custom Block: Adding "Post Type" dropdown to Sidebar Settings

I'm pretty new to React, so I'm trying to find the simplest and most PHP-based way to achieve my goal. What I've accomplished so far Created custom blocks using the @wordpress/create-block package. ...
beat's user avatar
  • 43
0 votes
0 answers
9 views

What setting can I change as my email forms don't work with some phones or ESIMs?

I have tried lots of different things but can't get email working from subdomains. If I use something like CF7 the little wheel just keeps spinning for some people in Japan using ESIMs or VPNs from ...
Glen Charles Rowell's user avatar
0 votes
2 answers
360 views

Why wp_load_alloptions() fetches all options if no options is set to autoload?

The wp_load_alloptions() function in option.php file, loads all options if no options is set autoload=yes Why does it do that? function wp_load_alloptions( $force_cache = false ) { global $wpdb; ... ...
p4atik's user avatar
  • 3
2 votes
2 answers
79 views

Does WordPress automatically redirect to the URL specified in settings?

My WordPress site used to require htaccess rewrite rules to redirect non-www to www (or vice versa) and http to https. Without those rules, the site would be accessible at whatever URL the user ...
Dave's user avatar
  • 119

15 30 50 per page
1
2 3 4 5
71