You can use the option API to set the blog_status and then display it. If you want to use blog description for the purpose you already have the UI available to set it from Setting->General and set the tag line to update your blog status.
Then you can display the tag line anywhere in your theme template using the following:
echo get_option( 'blogdescription', 'Default status message' );
But if you are using blog description somewhere else and want a dedicated option for the blog status purpose then you can use the update_option
like in the examples below to set and display the blog status.
To set the blog status:
update_option( 'blog_status_message', 'This is pretty cool blog status message' );
To display the blog status:
echo get_option( 'blog_status_message', 'The default status message' );
For more information on Options API.
Related Posts:
- wordpress function to change post status [duplicate]
- Allow users mark posts as “complete”?
- Count posts by type including drafts and pending posts
- Is it possible to cancel a post status transition?
- Enforce conditions only for draft posts using WyPiekacz, ignore pending and published posts
- Check if post was modified by editor different than post author
- How to change post status to draft in Gutenberg?
- Translate a plugin using .po .mo files
- How can I create a bash install script for my WordPress sites setup (WP+plugins+theme)?
- Sending all emails using SMTP
- __(): What if I have to pass in a variable?
- How to make Pull Requests on a wordpress.org plugin?
- Custom Taxonomy in plugin and template
- Should we use plugins that aren’t available from the official WordPress site?
- Where can I propose a new plugin?
- Disallow a user to post in certain categories
- Why allow overriding crucial pluggable functions wp_verify_nonce and wp_create_nonce?
- is_post_type_archive not working in feed
- How to edit plugin’s html? [closed]
- Datepicker not supporting timepicker
- Add a Custom Permalink option in the Permalink Admin Screen?
- add_filter the_content in functions.php not working
- Escape special characters in image link
- Disable WordPress password reset via mails,instead notify admin about the reset request
- Can’t use the built-in wordpress install/upgrade plugin feature [closed]
- publish_post plugin hook doesn’t always pass $post->post_content
- Let user subscribe to specific categories
- WP Customer Reviews – shortcodes
- Setting Custom Email From name and email address in wp_email()
- How to change commenter links to /user/user_id?
- How to send a mail when a plugin update found?
- Notepad sticky plugin
- WordPress Gutenberg react make import of __experimentalUseInnerBlocksProps which is no more experimetal
- Is there a way to create custom product templates based on category on WooCommerce?
- Retrieving a path when dealing with composer packages
- Warning in Pluggable.php
- Is it possible to use multiple post_name, post_title and post_content?
- Deactivating all plugins and reactivating one by one, fixes conflicts. Why?
- Problem with Author page redirect
- Include comments form in plugin page
- accessing wp.media api from a tinymce plugin
- Restrict access to content in conjunction with facebook connect & google login
- how to insert data in wordpress table usnig jquery ajax
- Warning: Use of undefined constant list_all – assumed ‘list_all’ (this will throw an Error in a future version of PHP)
- How to distinguish if a plugin is not installed or just not active
- WordPress Apply filter in plugin causes 500 internal error
- Meta query for comparing two dates
- Can’t activate Plugin: unexpected T_STRING, expecting T_FUNCTION [closed]
- How to enable customer login to customer specific admin page
- How to prevent plugins from sniffing/stealing other plugins’ options?
- Is there a plugin for feedback like Kissmetrics available? [closed]
- How do i show different group of images below a button when the button is clicked on the same page in wordpress? [closed]
- why need theme,if page builder is there in wordpress [closed]
- Retrieve options set through a plugin
- How to Include Custom Post Content From Plugin
- How to redirect to a page after the form is submitted
- Exporting Custom Taxonomy in plugin
- Add background image/layout for single page?
- Separate jQuery for Individual Comments?
- Does WordPress check for updates of a plugin via plugins root folder name?
- Identify current wordpress theme
- How to write a new file when new post has been published in WordPress
- Using call_user_func() within add_settings_section() within a Class
- Paypal Framework
- How to makes changes on the shop/category/tag pages but not on the product pages in woocommerce?
- WordPress default post categories meta box widget
- Save order without sending the invoice / order details woocommerce [closed]
- Fatal error “Call to undefined function is_plugin_active” each time the plugin is activated
- Getting Fatal error: Uncaught Error: Call to undefined function plugin_dir_path() when linking to another file within my wordpress plugin
- the content of the uploads folder gets deleted periodically, how to figure out what causes it?
- Product Page loads terribly slow when product gallery images are added
- front end editor creation for Restropress plug in – displaying information from a WP admin area, on a different URL
- Clean old users
- Cannot display wordpress thumbnail
- How do I render content from a wp_editor in a plugin setting field?
- Only return taxonomies that are linked to a category & product
- Trying to remove a couple categories from shop page
- Enabling plugin on specific pages and subpages
- Widget display in theme
- How can I disable Jetpack plugin on mobile?
- Using W3 Total Cache, I set expire headers to media, css and js files,but it seems doesn’t work [closed]
- Not getting result using ajax on wordpress
- Error when renaming option
- Can anyone tell me why I can’t edit a plugin when it is installed without having to re-install?
- URL Rewriting from a Plugin based on custom values
- Plugin De/Activation Not Firing On MultiSite install
- Change All Login/Signup Links in Plugin
- Buddypress Plugin for register user from other site’s [closed]
- Need plugins and themes from clients site [closed]
- Permissions question [closed]
- Output dropdown results into Woocommerce Order details
- Need help with restricted page for users
- Display Video as Post Thumbnail
- Display products based on sub-categories
- How to make horizontal scrolling menu [closed]
- how to embed a crop feature for cropping images uploaded by the user
- Update post meta Rest Api
- cURL External API request displays content above other content on page
- How to give specific class name to category in wordpress with code snippets
- Problem moving to category posts page