How about post meta ?
if ( ! update_post_meta (7, 'sent', '1') ) {
add_post_meta(7, 'sent', '1', true );
};
Or options table or custom table
Related Posts:
- How to properly insert data into custom table via plugin
- Simple form that saves to database
- How to store ACF custom fields data in a custom table
- How to edit/delete single row items in a table on my own menu page
- Get total number of comment of the posts written by an author
- How to write one comment and publish on every post using database or plugin?
- Make id column as AUTO INCREMENT on plugin activation
- How to access data in wordpress database externally using php
- Creating a CSV with PHP inside the plugin directory
- Issue running db create table query from static method
- How to create plugin/ page that reads from database
- Comment “like” problem – “users who like this” avatar linking to current user profile instead of “liker’s” profile
- Is this plugin safe to run?
- How to display results from a data table with an encrypted user id?
- add_action for publish_post doesn’t work
- Getting URL GET parameter with Code snippets and storing it in database?
- Cant create table on plugin activation
- How to use WordPress header function and footer function and not load word press database
- Get Shortcode output to database for static post_content
- Moving a few select DB tables to a new WP instance
- How can I store user preferences in WordPress and retreive them later?
- plugin doesn’t retrieve data from database
- Should all plugins be encapsulated in a Class?
- How do I show data from gravity forms in my template? [closed]
- Preserve custom URL parameter on more pages
- PHP code on Visual Composer Plugin
- if plugin is active? check if plugin is enabled or not?
- Making plugin unique to not conflict with plugins with the same name
- How to find out if option exists but is empty?
- Trying to disable plugins doens’t work
- WordPress plugin DB upgrade
- Thumb rating for wordpress – top user
- Have Plugin Handle Specific URLs
- allow arabic letters when register new account
- Ajax with jQuery UI dialog not working
- How do you remove plugin edit option?
- Creating Tables on Network Activation
- Where should I save an API key of my user when installing my plugin?
- Accessing post’s meta data based on user’s click of a post
- How to add equivalent of php include to one page (as plugin?)
- Image upload and download from front-end
- Shrink down register_settings on Settings API
- How to call WordPress function other files
- Removing an action from wp_footer called in a class that’s inside a bigger class
- Ajax call returning 0
- Why namespaces are rarely used in WordPress plugins?
- Some code in shortcode function being ignored
- WordPress and a secondary database?
- Plugins in WP_Options but not Active
- Updating options into the wp database performance
- Ajax save data to database on document ready, no data being saved
- How to get specific string/value from an array? php [closed]
- Background Music WP [closed]
- Why is it important to check for isset and is_array before checking in_array in this example?
- ACF – How to set the menu order for the relationship field
- Custom search search does not work?
- How to call external functions from a PHP script in a WordPress plugin?
- Passing PHP Variables to AJAX Loaded Pages
- How to add custom function to pluggable.php
- WooCommerce – new order email hook
- How to list datas from database in a topic?
- Editing a coupon generating plugin
- Woocommerce add products to cart
- How to hide an option from dropdown in filter module
- How use wp_insert_post and add og:custom tags?
- Display pagination in reservation Plugin and and Print table as pdf
- How to change “Read More” text?
- How to change a wordress plugin php code in my child’s functions.php file?
- Using id to show item
- WordPress database problem wp_posts, primary key
- How to allow URL with filename & extension in wordpress?
- WP Migrate DB Pro plugin cannot transfer Media files to remote server
- Woocommerce – Change variations output
- WordPress Plugin PHP Not Calling Function
- load plugin in code snippet
- Is admin section completely customizable in terms of styling?
- PHP message: WordPress database error Deadlock found when trying to get lock
- Creating Admin Submenu Page via Class Method
- Migrating custom php we wrote from functions.php into a site-specific plugin
- What is the correct entry point for capturing coverage data
- how to create database to use it in wordpress website?
- How to create a dashboard for logged-in users with custom functionality? [closed]
- Cannot access variables within a widget
- Is saving multiple options or saving multiple items in one option better?
- Collaborate on wordpress local website, share files via dropbox?
- Working on fixing wp-front-end-editor, encountering undefined index
- Pull Data from DB for Admin Page Display as Relates to Admin Page Class by BA Internet
- Shrinktheweb plugin problem
- Photos do not show on SEO platform built into a wordpress plugin
- Issue with custom plugin
- Showing author box on post detail page
- Getting Post Permalink Outside of Loop Not Working
- My wordpress website admin panel loads very slow, what can i do about that? [closed]
- PHP $_session is not work in wordpress
- How to insert current “login” page to certain page?
- How to show random feed from DB and show content in my site
- register_activation_hook not working
- add_action() not working for admin
- How to install and activate a plugin using an external PHP script?
- Custom page template from plugin does not work with pre-installed themes in WordPress 6.6.1