Reputation
272
Next privilege 300 Rep.
Create new tags
Badges
1 8
Newest
 Commentator
Impact
~11k people reached

  • 0 posts edited
  • 0 helpful flags
  • 7 votes cast
Feb
4
comment Update post meta does not serialize array
@Robbert at this point I have to assume it is something in the environment. Is there a way you can try updating the post meta outside your class?
Jan
28
comment Update post meta does not serialize array
Are you able to print the value of $order_data to prove that, in the context the class is called, that it is valid? Instead of attempting the update_post_meta try just printing the values.
Jan
28
awarded  Commentator
Jan
28
comment Update post meta does not serialize array
I mean if you assign a variable to the update_post_meta function what does it return? Like this: $returnData = update_post_meta( $post_id, 'order_data', $order_data ); print_r($returnData);
Jan
28
comment Add the title attribute to links
No problem, glad to help.
Jan
28
comment comments_array filter doesn't work in some themes
Agreed with @cybmeta, we need context in order to understand what is going on. Most likely a priority thing, where your filter is ignored because of another filter in the themes in question. Review the doc for the $priority params: codex.wordpress.org/Function_Reference/add_filter
Jan
28
answered Add the title attribute to links
Jan
28
comment Add a BuddyPress user group and allow them to edit and control a specific page
This is going to depend greatly on the types of plugins you are using. For example, since you are using buddypress you could use the Groups system. "Groups" would be restaurants, and group owners would be the restaurant owners, with access to their restaurant and the ability to edit it. General users would subscribe to that restaurant and then have access to add it to their profile. Again, this is a very simple breakdown of a more complex feature, but I am hoping to offer a very out of the box solution. It would make more sense to apply user roles to perform specific tasks as needed.
Jan
28
comment Update post meta does not serialize array
What is the update_post_meta returning? Also, what does the data look like in the database?
Nov
17
answered Programatically update Custom Attributes WooCommerce
Nov
17
comment Programatically update Custom Attributes WooCommerce
Are you adding products to the database via your "custom triggers" or are the mysql triggers responding when you insert data into the database via WordPress? Or are you manually inserting WordPress data (products?) into the database and it is appearing in the admin? If you can give me a bit of clarity I believe I can help.
Nov
17
answered How can i create a pages for anonymous users in custom plugin..?
Jan
27
awarded  Popular Question
Oct
2
awarded  Student
Oct
1
awarded  Promoter
Sep
29
asked WordPress Multisite, NGINX and WordPress Subdirectory Install
Jan
30
awarded  Yearling
Nov
1
awarded  Supporter
Nov
1
awarded  Scholar
Nov
1
comment MySQL Query that looks for post with Custom Field, then changes Category
wp_set_post_terms() worked like a charm, thank you!