Yes, you can use wpdb to delete the record in the custom table. Something like this in the wordpress function.
require_once ('../../../../wp-load.php');
if (!empty($_POST['id'])) {
global $wpdb;
$table="table_name";
$id = $_POST['id'];
$wpdb->delete( $table, array( 'id' => $id ) );
}
Related Posts:
- How to get specific table by current user login
- WPDB Insert or if exists Update
- Display data from a non wordpress database on a page template
- Inserting Post Meta From SQL
- How to execute mulitple statement SQL queries using $wpdb->query?
- How to query the WordPress database to get posts of a certain custom post type, taxonomy and field?
- Getting all the users who have author privilege
- wpdb_prepare with multiple or condition
- In what part of the WordPress core does the users table and usermeta table get joined?
- Modify Database in Multi-Site wp_usermeta table
- Create table from array with prepare
- WPDB SQL query with prepare() returning variable, not db value
- Best practice to import user base (subscribers) from one website to another?
- Clear Terms from Taxonomy for Specific Post IDs?
- Getting value from database table depending on field value
- Select From wpdb – Author/User Directory page
- Help posting values to DB on submit using $wpdb->query
- 2 $wpdb queries causing error Table ‘wp_postmeta’ is specified twice, both as a target for ‘UPDATE’
- Correct and secure way to access a custom SQL database in a custom PHP template file
- What is “Advanced” SQL?
- Oracle SQL query for Date format
- Using wpdb to connect to a separate database
- Multiple developers / editors working on a site in progress
- get_results using wpdb
- $wpdb won’t insert NULL into table column
- How many users can WordPress handle?
- Get error messages when $wpdb->insert() returns false?
- Detecting errors generated by $wpdb->get_results()
- Does dbDelta delete columns as well?
- wpdb update add current timestamp not working
- How to fetch Data in WordPress using MySQLi or $wpdb
- wpdb->insert multiple record at once
- WordPress Unit Testing – Cannot Create Tables
- How to define composite keys with dbDelta()
- Does wpdb add considerable overhead on queries with large result sets?
- How to track user progress?
- Why does $wpdb return strings for mysql integer values?
- $wpdb->prepare() warning in WordPress 3.5
- Where are image paths to product category images stored in WordPress database
- Sharing database for collaborative development
- Inserting data into custom tables
- Hook into $wpdb
- How does $wpdb handle COUNT(*)
- Performance tips for a large user base [closed]
- Organizing WP Pages based on old website database
- How might I retrieve a featured post image from an external WP site and display it as a link back?
- WordPress database error: [Query was empty] [closed]
- Export wordpress table to excel
- How to close wpdb connection? [duplicate]
- How to auto login user again after change user_login
- Why does dbDelta() not catch MysqlErrors?
- Getting users who registered 360 days from current date
- Querying Email Addresses for a List of Users with Same Last Name?
- Connecting to external oracle database
- Efficiency on displaying random authors based on large database
- Bulk Update of Custom Post Type Post Status through SQL
- How do I add indexes to WordPress Database?
- Moving an entire wordpress site from one domain to a new domain and database
- Change SQL get_results to search for posts with custom term in custom taxonomy
- Can’t save ajax value to database
- Add Admin User via SQL
- What causes the “max_user_connections” warning on WordPress frontend?
- $wpdb variable throw this error Call to a member function get_results() on a non-object in
- Extend the wp_users table
- Updating all rows of table with $wpdb
- Block search SQL from happening
- WPDB: how to get the value of a field in a custom database table
- wpdb query on custom table not working [closed]
- Safe way to find last inserted id in a table?
- Delete duplicate rows from wordpress database where a column is duplicate in phpmyadmin
- Is $wpdb->prepare escaping to much? How to use it properly?
- Database slowdown after update to 3.4.1
- How to use user table of a different database for WordPress users?
- When and why should I use $wpdb different return types?
- Subscribers to posts
- Query WordPress database by registered date and role
- How wordpress accesses its own database
- Using table lock with wp_insert_post?
- Remove database entries where post_date > expiration date
- Error connecting to DB in /wp-includes/wp-db.php on line 1538 [closed]
- Scheduling posts in database
- Set Display Name to first and last name (phpmyadmin SQL Query)
- Size article thumbnails and retrieve them directly from database
- How To Get Some Data From WordPress Database Using WordPress $wpdb Query?
- Get data from database using $WPDB
- Select Multiple meta_value from WP DB; Single Query
- How to use a different database to list and manage comments in the backend
- Multiple postmeta with same name for one post in wp_postmeta table
- WP Database Table to CSV file
- Cannot update custom database table row
- Does WordPress always create unique passwords?
- Show last modified date of database
- Uppercase to sentence case for post titles
- $wpdb->insert is not working
- SQL Error wp_commentmeta – incorrect table definition
- Extracting the post_id via the wp_insert_post action (external db query)
- WordPress database error – Error in SQL syntax – I can’t identify any error?
- Why is it that not all users have a ‘session_tokens’ meta_key record in the usermeta table?
- WordPress and MySQL: how to transfer Meta_key and Meta_Value from one post_id to another
- Change WordPress prefix for only one table?