Getting started with WordPressget_bloginfo()Enqueuing scriptsMaking network requests with HTTP APIEnqueuing Styleshome_url()Custom Post Typestemplate_includeThe Loop (main WordPress loop)AJAXThe $wpdb ObjectActions and Filterswp_get_current_user()Add/remove contact info for users with user_contactmethods filter hookCreating a custom templateCustomizer Hello WorldCustomizer Basics (Add Panel, Section, Setting, Control)The Admin Bar (aka "The Toolbar")Querying postsAlternating main loop (pre_get_posts filter)ShortcodeCreate a Post Programmaticallyget_template_part()Taxonomiesget_template_part()ShortcodesPost FormatsCustom exerpts with excerpt_length and excerpt_morePlugin developmentSecurity in WordPress - EscapingTemplate hierarchyRemove Version from Wordpress and StylesheetsChild Theme Basicsadd_action()get_template_part()Shortcode with attributeSidebarsSecurity in WordPress - SanitizationinitCreate Template for Custom Post TypeFunction: add_action()Add ShortcodeHow Can I integrate Markdown editor with Advance Custom Field's repeater Add-on.Installation and Configurationwp_get_current_user()WP-CronSecure your installationOptions APIFunction : wp_trim_words()WP_Query() LoopUpdate WordPress ManuallyThemesWP-CLIDebuggingadd_menu_page()add_submenu_page()get_option()get_permalink()get_the_category()the_title()get_the_title()add_editor_style()add_theme_support()WordPress Plugin creationRun WordPress local with XAMPPAdmin Dashboard WidgetsSite MigrationMeta BoxRemove Auto Line Breaks From Content and Excerptget_home_path()Wordpress theme and child-theme developmentREST API

WP-CLI

Other topics

Manage themes

Get a list of themes.

$ wp theme list

Install the latest version from wordpress.org and activate

$ wp theme install twentysixteen --activate

Install from a local zip file

$ wp theme install ../my-theme.zip

Install from a remote zip file

$ wp theme install http://s3.amazonaws.com/bucketname/my-theme.zip?AWSAccessKeyId=123&Expires=456&Signature=abcdef

Get details of an installed theme

$ wp theme get twentysixteen --fields=name,title,version

Get status of theme

$ wp theme status twentysixteen

Manage plugins

Get a list of plugins

$ wp plugin list 

List active plugins on the site.

$ wp plugin list --status=active --format=json

List plugins on each site in a network.

$ wp site list --field=url | xargs -I % wp plugin list --url=%

Activate plugin

$ wp plugin activate hello-dolly

Deactivate plugin

$ wp plugin deactivate hello-dolly

Delete plugin

$ wp plugin delete hello-dolly

Install the latest version from wordpress.org and activate

$ wp plugin install bbpress --activate

Manage WP-CLI itself

Display the version currently installed.

$ wp cli version

Check for updates to WP-CLI.

$ wp cli check-update

Update WP-CLI to the latest stable release.

$ wp cli update

List all available aliases.

$ wp cli alias

Print various details about the WP-CLI environment.

$ wp cli info

Dump the list of installed commands, as JSON.

$ wp cli cmd-dump

Download, install, update and manage a WordPress install.

Download WordPress core

$ wp core download --locale=nl_NL

Install WordPress

$ wp core install --url=example.com --title=Example --admin_user=supervisor --admin_password=strongpassword [email protected]

Display the WordPress version

$ wp core version

Transform a single-site install into a WordPress multisite install.

$ wp core multisite-convert

Install WordPress multisite from scratch.

$ wp core multisite-install 

Manage users

List user IDs

$ wp user list --field=ID

Create a new user.

$ wp user create bob [email protected] --role=author

Update an existing user.

$ wp user update 123 --display_name=Mary --user_pass=marypass

Delete user 123 and reassign posts to user 567

$ wp user delete 123 --reassign=567

Perform basic database operations using credentials stored in wp-config.php

Create a new database.

$ wp db create

Drop an existing database.

$ wp db drop --yes

Reset the current database.

$ wp db reset --yes

Execute a SQL query stored in a file.

$ wp db query < debug.sql

Contributors

Topic Id: 9169

Example Ids: 28470,28471,28482,28483,28484,28485

This site is not affiliated with any of the contributors.