![]() ![]() PG : Possibly offensive, usually for audiences 13 and above thread_comments_depth: Set the number of threading levels for comments.thread_comments: Enable WP-native threaded (nested) comments.require_name_email: Before a comment appears, the comment author must fill out his/her name and email.moderation_notify: E-mail me when a comment is held for moderation.It will match inside words, so “press” will match “WordPress.” moderation_keys: When a comment contains any of these words in its content, name, URL, e-mail, or IP, it will be held in the moderation queue.default_pingback_flag: Attempt to notify any blogs linked to from the article (slows down posting).Open : Allow pingbacks and trackbacks from other blogs (default)Ĭlosed : Disallow pingbacks and trackbacks from other blogs default_ping_status: Allow link notifications from other blogs (pingbacks and trackbacks).default_comment_status: Allow comments (can be overridden with individual posts).comments_notify: E-mail me when anyone posts a comment.comment_moderation: Before a comment appears, an administrator must always approve the comment.comment_max_links: Hold a comment in the queue if it contains the value of this option or more.blacklist_keys: When a comment contains any of these words in its content, name, URL, e-mail, or IP, it will be marked as spam. ![]() Update the value of an option that was already added. Top ↑ Examples // Create an option to the databaseĪdd_option( $option, $value =, $deprecated =, $autoload = 'yes' ) The only differences occur for WP Multisite, when the options apply network-wide and the data is stored in the wp_sitemeta table under the given custom name. Note that the _site_ functions are essentially the same as their counterparts. A list of default options can be found in the Option Reference (link to Codex version, waiting for content migration to HelpHub). This page contains the technical documentation needed to use the Options API. All the data is stored in the wp_options table under a given custom name. The API makes it easy to create, access, update, and delete options. The Options API is a simple and standardized way of storing data in the database. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |