WP custom fields plugin - which tables affected? - wordpress

I am updating a live site from production server. I don't have access to PHPMyadmin. I can choose certain database tables to move from the production site's admin panel to the live one. Question: Which Db tables are used by WP plugin "Custom Fields" (or - "Advanced custom fields") ?
I know only one table which is wp_postmeta but importing this table alone doesn't work (custom fields don't appear on the live site). And I cannot import all tables because of the content and other settings that are up to date on the live site. Thank you!

Custom fields was saving in e.g. wp_postmeta. Var_dump get_post_meta() to see all of them connected to specific post.
BTW - you don't need PHPMyadmin to see DB :)

Related

content not updating through database with elementor plugin on wordpress

I'm a CS student and it's currently my first internship ever. My mission is to modify the content of wordpress post through database (and later make an automation script) but the problem is that the website uses Elementor plugin. Whenever i make the modification through elementor interface, it shows up on the website and inside the databse table wp_post, but if i modify the content in the database, it doesn't show up on the website. However, if i turn off the elementor plugin, the modification does show up (but the style of the site is broken)
Does anybody know how I could update the content via the database without turning off elementor ?
Thanks so much in advance and have a great day

wordpress site administrator user does not show woocommerce settings access after adding user role editor plugin

https://wordpress.org/plugins/user-role-editor/ This plugin I installed
how to revert back I disable the plugin but still, I can't access woo-commerce admin access
it only shows me the order and coupon menu.
how to fixed this, please help
i think you have not given shop manager rights to admin user so this is happening
/* solution */
you again activate above plugin and Grant role from that selected admin user
you can check screenshot given in user-role-editor plugin also
So I fixed the issue from the office plugin documents https://www.role-editor.com/how-to-restore-deleted-wordpress-user-roles/
3rd variant – User Role Editor creates roles backup record before save the very 1st update to them. You need to use SQL tool like phpMyAdmin. Find that record at ‘wp_options’ meta database table:
SELECT * FROM wp_options WHERE option_name='wp_backup_user_roles';
As the result you will see something like this (I use MySQL Workbench):
User Roles Auto Backup
User Roles Auto Backup
Take data from the option_value field and place them into the record where WordPress stores user roles originally. You may find it with this SQL query:
SELECT * FROM wp_options WHERE option_name='wp_user_roles';
Read this post for more details about changing WordPress user roles directly in the database using SQL commands.

Staging with Woocommerce and Siteground

I have a problem. I need to do some updates for a client and the website use Woocommerce, the hosting platform is Siteground. Someone told me that I need to use stages for updates/ development. But I don't know how to manage the situation because I have an example..
I'm making the stage using the Siteground tools, and now I have a copy of the entire shop. I'm working on updates for 5 days for example. After this 5 days, everything looks great and I want to do "Push to live" but surprise, in this time the production got another 50 orders. What can I do to not override this orders, new users, etc.
I know that I can use the the Advanced Push and to check the tables that I want to update, but we all know how wordpress works, that all the things are actually stored in wp_posts. How to deal with that?
A strange thing is that I've made the stage and right after I've checked if are some updates to do using Advanced Push and got to do update for this tables
wp_termmeta
wp_redirection_logs
wp_posts
wp_redirection_404
wp_term_relationships
wp_terms
wp_commentmeta
wp_options
wp_comments
wp_users
wp_redirection_items
wp_term_taxonomy
wp_usermeta
wpk_postmeta
The approach to take will purely depend on what updates were made to the site. If purely plugins/themes were updated you can copy over the files from the staging site to the live site.
However if a more in-depth change was made to the site such as content, structure, etc then an approach, using a plugin, similar to in the link below can be taken:
https://wp-staging.com/migrate-wordpress-staging-site-to-production-site/

Adding a product programatically to wordpress woocommerce website

I'm quite new in wordpress and woocommerce plugin and I would like to create an app that would add products programatically to a website using this plugin.
I thought about writing directly into the database in the wp_posts and wp_postmeta tables. However, I've read about some php woocommerce functions, but I know nothing about this and where to write the php code.
Is the solution I provided is clean enough?
Otherwise how could I use the php functions provided by woocommerce?
Thanks a lot!

Wordpress - Database

New to Wordpress.
I am aware the default database to Wordpress is MySQL.
Like livejournal, i have a small requirement which allows Admin to post content and registered users on the website are allowed to post contents.
I decided to go with Wordpress, but still have not done much research on allowing registered users to post contents as like admin.
I am wondering, What database would be the best to go with ?
SQL or MySQL ?
Also, whether these contents are stored in the Database or in the form of .doc ?
The database you use doesn't matter as long as Wordpress supports it.
Comment functionality is built into Wordpress. You don't need to do any custom development to make it happen. If you only want registered users to be able to comment, you'll have to make a setting requiring users to be registered and logged in to comment. This setting is under Settings - Discussion. Comments are stored in the database.
Those are a few questions in one, so I'll answer each one of its own and paraphrase:
Can Wordpress use some other database than MySQL?
No, Wordpress only supports MySQL, so there is no choice.
Are the posts or pages/content in Wordpress stored in a database or in a .doc file
The contents of posts in Wordpress, just like in liveJournal, are actually stored in a database.
Is it possible to allow users in Wordpress to submit content that an admin can then review and publish/delete later etc.
Yes. Very much so. I believe it's built into Wordpress, you just need to have a registered user and enable the feature.

Resources