WordPress at Your Fingertips

List of All WordPress Options

Here is the entire list of WordPress options, which are located in the wp_options table. You can see all the options for your site on the hidden admin page /wp-admin/options.php.

You can get any option from the list below with this code:

$option = get_option( 'option_name' );

For a complete list of functions to control options see here.

List of Basic WordPress Options by Category

Contents:

Main

admin_email(string)
Administrator's email adress.
Default: you@example.com
new_admin_email
adminhash

If you specify a new email in the new_admin_email option, the administrator will be prompted to confirm the email change. The data about such a change is stored in the adminhash option.

blogdescription(string)
Blog tagline
Default: __('Just another WordPress weblog')
blogname(string)
Blog name
Default: __('My Blog')
date_format(string)
Default date format (see formatting date and time)
Default: __('F j, Y')
gmt_offset(int)
The time offset on the site in hours, relative to the GMT zone.
-6 - GMT -6 (aka Central Time, USA)
0 - GMT (aka Greenwich Mean Time)
Default: date('Z') / 3600
home(string)
The site address (URL to site homepage).
Default: wp_guess_url()
siteurl(string)
WordPress address (URL where WP core is).
Default: wp_guess_url()
start_of_week(int)
The start day of the week.
0 - Sunday
1 - Monday (default)
2 - Tuesday
3 - Wednesday
4 - Thursday
5 - Friday
6 - Saturday
time_format(string)
The default time format (see Formatting the date and time).
Default: '__('g:i a')'
timezone_string(string)
Time zone. For example: Asia/Tashkent.
Default: NULL
users_can_register(int)
Anyone can register.
1 - yes
0 - no (default)
default_role(string)

The default role of users that register on the site. Can be:

  • subscriber (default)
  • administrator
  • editor
  • author
  • contributor
wp_page_for_privacy_policy(int)
Stores the privacy policy page ID. For example, it would be 3 if the privacy page ID = 3.
Default: NULL
auto_update_core_major(string) (WP 5.6)
auto_update_core_minor
auto_update_core_dev

Whether auto-update is enabled for major/minor/dev versions of the WordPress core, respectively. Possible values: enabled, disabled.

If a constant is set. WP_AUTO_UPDATE_CORE, the values of these options will be overridden depending on the value of the constant.

Default:

  • auto_update_core_major — enabled (for new sites) | unset (for old sites)
  • auto_update_core_minor — enabled
  • auto_update_core_dev — enabled

Media

If one of the parameters upload_path or upload_url_path are set, new fields will appear in the admin panel on the Settings > Media Files page:

upload_path(string)
The path to the folder to save the uploaded files (relative to the root of WordPress, for example, wp-content/uploads).
Default: NULL
upload_url_path(string)
Full URL path to the folder with the files. This option is optional and is empty by default.
Default: NULL
uploads_use_yearmonth_folders(int)
Arrange My Downloads in folders based on months and years.
1 - yes (default)
0 - no (default for safe mode)
thumbnail_size_w(int)
Width of the created thumbnail in px.
Default: 150
thumbnail_size_h(int)
Height of the created thumbnail in px.
Default: 150
thumbnail_crop(int)
Crop thumbnail to exact size (thumbnails are usually proportional).
1 - yes (default)
0 - no
medium_size_w(int)
Width of average size of uploaded image in px.
Default: 300
medium_size_h(int)
Height of the average size of the uploaded image in px.
Default: 300
large_size_w(int)
Width of the large size of the uploaded image in px.
Default: 1024
large_size_h(int)
Высота большого размера загружаемой картинки в px.
Default: 1024
medium_large_size_w(int)
Width of the medium size of the uploaded image in px.
medium_large_size_h(int)
Height of the medium size of the uploaded image in px.
embed_size_w(int)
-
Default: NULL
embed_size_h(int)
-
Default: 600

Comments

Default settings for a post (these settings can be changed for an individual post)
default_pingback_flag(int)
Trying to notify the sites specified in the post content (slows down publication).
1 - yes (default)
0 - no
default_comment_status(string)
Comment status for the post by default. Allow/disallow comments (can be overridden in the post).
open - Allow comments (default).
closed - Prohibit comments.
default_ping_status(string)
Allow link notifications from other blogs (pingbacks and trackbacks).
open - Allow pingbacks and trackbacks from other blogs. (default)
closed - Prohibit pingbacks and trackbacks from other blogs.
Other comment settings
require_name_email(int)
Before a comment appears, the author of the comment must fill in his or her name and email address.
1 - yes (default)
0 - no
comment_registration(int)
Users must be registered and authorized to comment.
1 - yes
0 - no (default)
close_comments_for_old_posts(int)
Automatically close comments on old articles.
1 - yes
0 - no (default)
close_comments_days_old(int)
Automatically close comments on articles older than X days.
Default: 14
show_comments_cookies_opt_in(int)

Show comments cookies opt-in checkbox, allowing comment author cookies to be set.

Show the checkbox to allow save not authorized comment authors data in cookies. The checkbox will be displayed in the comment form.

1 - yes
0 - no (default)

thread_comments(int)
Allow tree-like (nested) comments.
1 - yes
0 - no (default)
thread_comments_depth(int)
Maximum number of tree-like (nested) comment levels. From 1 to 10 levels.
Default: 5
page_comments(int)
Split comments into pages.
1 - yes (default)
0 - no
comments_per_page(int)
Split the top level comments into X number of pages.
Default: 50
default_comments_page(string)
An addition to the comments_per_page parameter. By default, the last/first page is displayed.
newest - последняя
oldest - первая
Default: 'newest'
comment_order(string)
Early or late comments should be sown first at the top of each page.
asc - раннии (default)
desc - позднии
comments_notify(int)
Send an email to the admin when someone has left a comment.
1 - yes (default)
0 - no
moderation_notify(int)
Send an email to the admin when a comment is pending moderation.
1 - yes (default)
0 - no
comment_moderation(int)
The administrator must approve the comment before it will appear.
1 - yes
0 - no (default)
comment_whitelist(int)
The author must have previously approved comments before the comment appears.
1 - yes (default)
0 - no
comment_max_links(int)
Hold a comment in the queue if it has a specified or greater number of links.
Default: 2
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. You need to specify one word or IP on each line. Any occurrence of the specified word is checked, so for example "press" will match "WordPress".
Default: ''
blacklist_keys(строка/несколько строк)
If a comment contains any of these words in its content, name, URL, email or IP address, it will be flagged as spam. One word or IP in a string. A substring search is used, which means "WordPress" will be found for the word "press".
Default: ''

Avatars

show_avatars(int)
Avatar display.
1 - (default) Show Avatars.
0 - Don't show avatars.
avatar_rating(string)

Maximum avatar rating

  • G - (default) Appropriate for any audience.
  • PG - May contain offensive content, usually for audiences over 13.
  • R - Appropriate for an adult audience of 17 and older.
  • X - For an even more mature audience.
avatar_default(string)

Default avatar. Can be:

  • mystery - (default) Mystery Man.
  • blank - Blank.
  • gravatar_default - Gravatar Logo.
  • identicon - Identicon (Generated).
  • wavatar - Wavatar (Generated).
  • monsterid - MonsterID (Generated).
  • retro - Retro (Generated).

Permanent Links (user-friendly URLs)

permalink_structure(string)
The desired structure of permanent links. Examples:
/%year%/%monthnum%/%day%/%postname%/ - Date and name.
/archives/%post_id%/ - Numeric.
/%postname%/ - Based on post name.
Default: NULL
category_base(string)
Category Base. By default category.
Default: NULL
tag_base(string)
Tags base. By default tag.
Default: NULL

Writing

default_category(int)
The identifier of the category in which a post will be placed by default.
Default: 1
default_post_format(int)

The default post format.

0 - Standard
aside - Note
chat - Chat
gallery - Gallery
link - Link
image - Image
quote - Citation
status - Status
video - Video
audio - Audio

Default: 0

use_smilies(int)
Convert emoticons like 🙂 and 😛 into pictures.
1 - yes (default)
0 - no
use_balanceTags(int)
WordPress should fix incorrect XHTML code automatically.
1 - yes
0 - no (default)
use_trackback(int)
Enable sending and receiving trackbacks.
1 - yes
0 - no (default)
Publish via email

To publish WordPress posts via email, you need to create a hidden email with POP3 access. Any message that arrives at this address will be published, so it's best to keep this address private.

mailserver_url(string)
Email server for posting to WordPress by email.
Default: 'mail.example.com'
mailserver_login(string)
The login of the mail server for posting to WordPress by email.
Default: 'login@example.com'
mailserver_pass(string)
The password for the mail server for posting to WordPress by email.
Default: 'password'
mailserver_port(int)
The port of the mail server for posting to WordPress by email.
Default: 110
default_email_category(int)
The ID of the category in which posts will be placed by default when emailing.
Default: 1
Updating services
ping_sites(string/strings)
When you publish a new post, WordPress automatically notifies the following update tracking service sites. For more on this, see "Update Tracking Services" in the Codex. If there are multiple service addresses, write each on a new line. The blog_public option must be 1 for it to work.
Default: http://rpc.pingomatic.com/

Reading

blog_public(int)
1 - (default) I would like my blog to be visible to everyone, including search engines (such as Google, Sphere, Technorati) and archivers. Adds <meta name="robots" content="noindex" />
0 - Block search engines, but allow access to visitors.
blog_charset(string)
Encoding of pages and feeds. The encoding in which the site content will be displayed (UTF-8 is recommended).
Default: 'UTF-8'
page_on_front(int)
Identifier of the page which should be displayed on the main page. The option show_on_front should be enabled.
page_for_posts(int)
The identifier of the page on which records are displayed. Useful when show_on_front=page value.
show_on_front(string)

What to show on front page

posts - Your latest posts (default)
page - Static page (see page_on_front)

posts_per_page(int)
Show x posts on the blog pages.
Default: 10
posts_per_rss(int)
Show x posts in RSS feeds.
Default: 10
rss_use_excerpt(int)
Show a excerpt instead of the full content of the post in RSS feeds
1 - yes
0 - no (default)

Theme

template(string)
The name of the current (parent) theme. The name in this case is the name of the theme directory (folder). See "The Name of the Current Theme". get_template().
Default: 'default'
stylesheet(string)
The name of the current (child) theme. The name in this case is the name of the theme directory (folder). For example, if the path to the theme is /wp-content/themes/some-theme then the value is some-theme. See get_stylesheet().
Default: 'default'

Others

site_icon
Site icon. The ID of the attachment that will be used as the site icon. See: get_site_icon_url().
active_plugins(array)
Contains an array with paths to the main php-files of plugins. The path is specified relative to the plugins folder. An example of the path in the array is myplugin/mainpage.php.
Default: array()
recently_edited(array)
An array of paths of recently edited files.
Default: NULL
image_default_link_type(string)
Can be: 'file', 'none'.
Default: 'file'
image_default_size(string)
Can be: 'thumbnail', 'medium', 'large' or Custom size
Default: NULL
image_default_align(string)
Can be: 'left', 'right', 'center', 'none'
Default: NULL
sidebars_widgets(array)
Returns an array of sidebar states (list of active and inactive widgets).
Default:
sticky_posts(array)
An array of IDs of pinned posts.
Default: array()
widget_categories(array)
-
Default: array()
widget_text(array)
-
Default: array()
widget_rss(array)
-
Default: array()
html_type(string)
MIME type for blog pages (text/html, text/xml+html, etc.)
Default: 'text/html'
wp_page_for_privacy_policy(int)
Privacy page ID.
menu
wp_user_roles(array)
An array of role names and their capabilities. For more details see wp_roles().
rewrite_rules(array)
An array of all rewrite rules that have been created and written to options. For details, see WP_Rewrite::wp_rewrite_rules() and WP::parse_request.
https_detection_errors(array) (WP 5.7)
An array of recent errors when checking if the site supports HTTPS. To check by croon once every half day the site makes a request to its main page via https protocol, see "The site is not supported for https". wp_update_https_detection_errors().

Links

links_updated_date_format(string)
-
Default: '__('F j, Y g:i a')'

List of old unused options

These options are removed (if any) when you update WordPress.

The current list is in the $unusedoptions variable in the wp-admin/includes/schema.php:

blodotgsping_url
bodyterminator
emailtestonly
phoneemail_separator
smilies_directory
subjectprefix
use_bbcode
use_blodotgsping
use_phoneemail
use_quicktags
use_weblogsping
weblogs_cache_file
use_preview
use_htmltrans
smilies_directory
fileupload_allowedusers
use_phoneemail
default_post_status
default_post_category
archive_mode
time_difference
links_minadminlevel
links_use_adminlevels
links_rating_type
links_rating_char
links_rating_ignore_zero
links_rating_single_image
links_rating_image0
links_rating_image1
links_rating_image2
links_rating_image3
links_rating_image4
links_rating_image5
links_rating_image6
links_rating_image7
links_rating_image8
links_rating_image9
links_recently_updated_time
links_recently_updated_prepend
links_recently_updated_append
weblogs_cacheminutes
comment_allowed_tags
search_engine_friendly_urls
default_geourl_lat
default_geourl_lon
use_default_geourl
weblogs_xml_url
new_users_can_blog
_wpnonce
_wp_http_referer
Update
action
rich_editing
autosave_interval
deactivated_plugins
can_compress_scripts
page_uris
update_core
update_plugins
update_themes
doing_cron
random_seed
rss_excerpt_length
secret
use_linksupdate
default_comment_status_page
wporg_popular_tags
what_to_show
rss_language
language
enable_xmlrpc
enable_app
embed_autourls
default_post_edit_rows
gzipcompression
advanced_edit
No comments
    Log In