The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
2answers
105 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 ...
2
votes
1answer
425 views

How do I setup nested repeatable option fields?

I'm trying to wrap my head around how to create a set of option fields that should be able to repeat for as many times as possible. But I'm having a hard time to figure out how to proceed. Currently ...
0
votes
1answer
67 views

update_option in WordPress AJAX

I have this example: For example, this code will register a callback called "wpa_49691": add_action( 'wp_ajax_wpa_49691', 'wpa_49691_callback' ); add_action( 'wp_ajax_nopriv_wpa_49691', ...
0
votes
1answer
275 views

Cannot Update wp DB - Get 500 Error

I have this site on godaddy Failpeep.com , It started giving me this problem yesterday , When I tried to login to admin area , It 1st kept loading if I entered the correct password and took me to a ...
-1
votes
1answer
188 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 ...
1
vote
0answers
34 views

wp cron job fires at every second or so, if callback is wrapped with DOING_CRON check it never fires at all

I am a bit lost while dealing with a open source plugin implementing wp cron. You can read about the problem on github https://github.com/nekojira/wp-currencies/issues/6#issuecomment-116735909 - I ...
1
vote
0answers
64 views

Is there an atomic way to update_option in Wordpress (to ensure data integrity)?

I want to update an option which is an array by adding a new value, but there's no atomicity or guarantee of data integrity. EXAMPLE //Get the option value (an array) $val = get_option( ...
1
vote
0answers
69 views

Excessive memory used by update_option()

I'm a newer WP developer trying to wrap his head around how to store information in the options table to support a plugin that I am writing. Unfortunately, trying to UPDATE the options table is making ...
1
vote
0answers
245 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
0answers
34 views

WordPress : Update old image_default_link_type to post

I have this code that update image_default_link_type option value to post. ans it work good for new post. But the old post i cannot update the images in old post to post link. How can do that ?? ...
0
votes
0answers
60 views

Custom Taxonomy Update Option not working

I'm working on a custom taxonomy I have created. The fields appear ok in both add and edit views and the save method is being called. I'm able to use deferred admin messages and ob_start to capture ...
0
votes
0answers
25 views

How to display the link that says “Edit Header Image” on header image

I have a website which featured with WP custom header image without plugin. I would like to ask that, is it possible to display a text with link which allows website owner easily change the header ...
0
votes
0answers
35 views

Update options and then display it all in a foreach loop

I am really new in wordpress development but not new in coding, what i would like to do is to make my own countdown wp plugin. The problem as a beginner is that i dont understand how works the wp ...
0
votes
0answers
34 views

Edit a custom admin page

I have created a custom admin menu page with: add_menu_page This page uploads a form to the wp_options table in the database. Basic save with update_option like: function addressbook_save (){ ...
0
votes
0answers
413 views

update_option() updating the option with an empty value?

I have a call to update_option() inside a class which edits some keys from the options array passed to it and then saves the updated array to the database, I don't have any fancy code, the function is ...