The tag has no wiki summary.

learn more… | top users | synonyms

-1
votes
1answer
50 views

update_option onclick

I'm trying to add a update_option value when I click a text link. I came up with the following code, but I don't know how to make it "clickable", like <?php function ...
0
votes
0answers
10 views

Reuse form function of widget in an option page

Can I reuse the form function of a widget in an option page to use it to store default values for the widget and its shortcode?
0
votes
1answer
26 views

Can I use add_option for a plugin categories and how?

So I am creating my first plugin for positioning ads around my site. I created one separate table where I store ads with all their options, such as position, expire date, active, name, type etc... But ...
0
votes
0answers
42 views

Change attachment filename on upload

I am using a forked plugin that uploads images. This works well but I have a problem: I would like to import images with a custom field (on the same csv file) as their name and not like the plugin ...
2
votes
1answer
136 views

Adding Widget form fields dynamically

I am trying to add form field to a WordPress widget dynamically. So if the user want to add another date to an event they can click a button to get more fields. The question is: How do save newly ...
1
vote
1answer
115 views

Why isn't get_option array contents displaying?

I've been to countless posts looking for the answer to this and have tried nearly every combination. So obviously, I'm missing a step so small that it's likely unfathomable to the Wordpress ...
0
votes
1answer
30 views

Plugin options page - save two related options as one entry

I created an options page for my plugin where the user can specify image dimensions which will be saved for later use. So far the image dimensions are entered by the user in one input field like ...
0
votes
2answers
64 views

update_option using variable name

Title may not be clear but I'm using update_option($my_option, $new_order); and for some reason it would not work but if instead I change to update_option('my-option-name' $new_order); it works. I ...
0
votes
1answer
87 views

update_options and unique filenames

I was able to temporarily disable an automatic task of wordpress during a specific file type upload which is nice. For instance, I changed the usual upload path for the pdf uploads by doing this: ...
0
votes
2answers
115 views

Add Option if Not Exists

I need to see if an option, and if does, get the value. If not, I need to add it. The Codex provides: <?php $option_name = 'myhack_extraction_length' ; $new_value = '255' ; if ( get_option( ...
-1
votes
2answers
92 views

How to display update message only to admin

How can I show the update message only to super admin in the network wordpress ? I don't want the other admins/users see the update message that shows the current version. Is there any plugin to do ...
1
vote
0answers
116 views

Multi-select field for Taxonomy can't save the value

I'm trying to create a multi select field for Taxonomy pages, and the problem is in saving all the selected values, for example if I choose couple of elements in the select field and save it, it will ...
0
votes
2answers
88 views

[Multisite]How can I update custom blog option?

I wanted to update custom blog option created thru Settings Api using the function update_blog_option. I created this code. $country_base = get_blog_option($blog_id, 'mytheme_options');//retrieve ...
0
votes
1answer
57 views

Insert/Update values to a table after blogname option etc. is updated

Im trying to update into another table the values blogname, blog description options when the user updated them from General Settings page. I use this code, $hook_array = ...
0
votes
2answers
328 views

update_option is not saving an array, but saving the string 'Array'

I have come across quite an odd problem when using the update_option function, and I am sure that I've tried everything I can think of to get it working, but unfortunately it isn't. I'm using AJAX to ...
1
vote
1answer
876 views

Update Option Stored in Multi-Dimensional Array

I have data in the wp_options table currently stored as a multi-dimensional array (profile_element_order): ...
0
votes
1answer
149 views

Settings API - how to update options manually?

I'm storing all my options using Settings API: function registerSettings() { register_setting('XX_theme_settings', 'XX_theme_settings', 'setting_validate' ); add_settings_section('theme_options', ...