March 2020
Beginner
660 pages
18h 28m
English
WordPress provides built-in functions so that we can work with existing database tables for creating, updating, deleting, and selecting data. We already looked at the process of selecting data from the wp_posts and wp_users tables in earlier recipes using the WP_Query and WP_User_Query classes.
In this recipe, we created a callback function on the init action to check the other database operations on the wp_posts and wp_users tables. We started the function by retrieving a URL parameter called wpccp_test and using its value inside a switch statement.
Read now
Unlock full access