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
- Delete tables from database when deleting plugin
- When unit testing a plugin, does the plugin need to be in the wp-content/plugins directory of the WordPress tests install?
- WordPress sharding: which multi-DB plugin to use?
- How can I prevent a plugin from updating unless it’s minimum PHP version is met?
- How do I check what plugins are enabled via the database?
- How to update widget_text in the wp_options table
- Determining where fopen() is writing files when used from WordPress AJAX call [closed]
- How Restrict access to admin dashboard by specific static ip?
- Overide a function that is inside a plugin
- Storing Email Account Passwords for SMTP Mailing for a WordPress Plugin
- How to get images from EDD post?
- If I delete plugins via FTP are settings kept in DB?
- How to install and activate a plugin via an external PHP script
- How to remove xmlns on language_attributes()?
- How to initialize something in unit test before the init hook being called?
- Add keywords meta to index.php page
- Download any file after submitting a form [closed]
- Pulling data from custom plugin settings using PHP shortcode and Javascript
- How to check if tables in WordPress still exists after activations
- Redirecting a buddyboss profile tab to a different tab if not subscribed to a specific membership
- Add a CSS class based on categroy id to archive pages
- Access WordPress data from external PHP application.
- How to create a custom post type that contains another custom post type?
- WP Query. Is there a maximum size?
- wp_editor content in plugin options page
- WP Plugins – Use includes to display page content
- WordPress as a data-store?
- Can i add custom code in Source, Header from function.php?
- How to make multiple admin pages for one plugin?
- Problem with isset and $_POST
- Redeclare function after plugin activation
- get_edit_post_link() not working on wp-cron
- Woocommerce Backend Search by Title and SKU
- Control page content visibility based on URL parameter
- WooCommerce Shopping Cart Not Initially Showing Products [closed]
- How to translate wordpress error message
- I want to generate the pdf and save it in library?
- Trying to make a simple wordpress plugin, having difficulties understanding how to make it?
- How to relate 3 wordpress components with each other (Create database relationships)
- Creating a search form and displaying results
- wordpress plugin license issue -New plugin development
- More gentle way to hook WordPress custom url
- How to proper escape echo inside a javascript tag
- How to convert Currency from USD to other IP Based currency in Php function
- How do I reinit WordPress plugins dynamically using jS?
- WordPress + python integration
- Newbie problem with adding include wp_footer
- How to implement data residency in my WordPress site
- Hide content for specific users with id
- adding dynamic/multiple slug values in ‘option_none_value’
- Get post content inside plugin class method
- Python in WordPress – A “Hello World” implementation
- Compare Ajax Data Results
- Many to many relationship for variable products
- Restrict role to use a plugin
- Is it a good practice to use wordpress database to store pages contents which loading to page dynamically?
- Where do the section input fields values are stored in database
- Creating new option (add_option) from AJAX – Settings API
- Use WP_Query for custom post type but result get empty
- Same Title on two different post type with single custom taxonomy
- Every time I use wp_get_current_user() my plugin breaks
- Need help integrating plugin into theme
- resizes images on the fly
- How do I convince this button to do something when it is clicked?
- WordPress function to add text
- TheCartPress plugin – Make every item in store unique
- How to find an option in the database?
- Doing action based on input from options menu
- Insert dynamic content into posts
- My wordpress site wont load, it gives header error warnings
- Can anyone see a syntax error in this? [closed]
- Shortcode returning specific content of a post
- get_option returning a different value from what’s saved
- wp_handle_upload – specified file failed upload test
- How to change all the urls of the WordPress site?
- How do I remove the filter from the orders and add custom status in Dokan?
- How to make a Template page to show the information of different things Shop and Product page?
- Split Million WordPress Post’s Into Multiple Database Server