サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
都知事選
developer.wordpress.org
You can use the functions documented on this page to register a block with JavaScript only on the client, but the recommended method is to register new block types also with PHP on the server using the `block.json` metadata file. See metadata documentation for complete information Learn how to create your first block for the WordPress block editor. From setting up your development environment, too
WordPress exposes several APIs that allow you to modify the behavior of existing blocks. Registration The following filters are available to extend block settings during their registration. block_type_metadata Filters the raw metadata loaded from the block.json file when registering a block type on the server with PHP. It allows modifications to be applied before the metadata gets processed. The f
Below is a listing of all currently available WP-CLI commands with links to documentation on usage and subcommands. Looking to learn more about the internal API of WP-CLI or to contribute to its development? Check out the WP-CLI team’s handbook. Command Description
Welcome to the WordPress Theme Developer Handbook, your resource for learning all about the exciting world of WordPress themes. The Theme Developer Handbook is a repository for all things WordPress themes. Whether you’re new to WordPress themes, or you’re an experienced theme developer, you should be able to find the answer to many of your theme-related questions right here. In this handbook, you
The WordPress REST API is organized around REST, and is designed to have predictable, resource-oriented URLs and to use HTTP response codes to indicate API errors. The API uses built-in HTTP features, like HTTP authentication and HTTP verbs, which can be understood by off-the-shelf HTTP clients, and supports cross-origin resource sharing to allow you to interact securely with the API from a client
Code integrated into the WordPress ecosystem – including WordPress core, WordPress.org websites, and official plugins, is expected to conform to the Web Content Accessibility Guidelines (WCAG), version 2.1, at level AA. New or updated interfaces are encouraged to incorporate the Authoring Tool Accessibility Guidelines (ATAG) 2.0. The most significant way that ATAG 2.0 guidelines can be incorporate
Here are some best practices to help organize your code so it works well alongside WordPress core and other WordPress plugins. Avoid Naming Collisions A naming collision happens when your plugin is using the same name for a variable, function or a class as another plugin. Luckily, you can avoid naming collisions by using the methods below. Procedural Coding Method By default, all variables, functi
Default:array() Return WP_Customize_Setting The instance of the setting that was added. Source public function add_setting( $id, $args = array() ) { if ( $id instanceof WP_Customize_Setting ) { $setting = $id; } else { $class = 'WP_Customize_Setting'; /** This filter is documented in wp-includes/class-wp-customize-manager.php */ $args = apply_filters( 'customize_dynamic_setting_args', $args, $id )
The Dashicons project is no longer accepting icon requests. Here’s why: Next steps for Dashicons. Dashicons is the official icon font of the WordPress admin as of 3.8. The Dashicons project is no longer accepting icon requests. Here’s why: Next steps for Dashicons. For any issues that appear within WordPress core, please create a new ticket on trac. Use the “administration” component and the “UI”
Searches through all rows in a selection of tables and replaces appearances of the first string with the second string. By default, the command uses tables registered to the $wpdb object. On multisite, this will just be the tables for the current site unless --network is specified. Search/replace intelligently handles PHP serialized data, and does not change primary key values. Options <old> A str
The WordPress REST API provides an interface for applications to interact with your WordPress site by sending and receiving data as JSON (JavaScript Object Notation) objects. It is the foundation of the WordPress Block Editor, and can likewise enable your theme, plugin or custom application to present new, powerful interfaces for managing and publishing your site content. Using the WordPress REST
Sets/updates the value of a transient. Description You do not need to serialize values. If the value needs to be serialized, then it will be serialized before it is set. Parameters $transientstringrequired Return bool True if the value was set, false otherwise. More Information For parameter $transient, if memcached is not enabled the name should be 172 characters or less in length as WordPress wi
paginate_links( string|array $args = ” ): string|string[]|void Retrieves paginated links for archive post pages. Description Technically, the function can be used to create paginated link list for any area. The ‘base’ argument is used to reference the url, which will be used to create the paginated links. The ‘format’ argument is then used for replacing the page number. It is however, most likely
Debugging PHP code is part of any project, but WordPress comes with specific debug systems designed to simplify the process as well as standardize code across the core, plugins, and themes. This page describes the various debugging tools on WordPress and how to be more productive in your coding, as well as increasing the overall quality and interoperability of your code. For non-programmers or gen
Overview The Options API is a simple and standardized way of storing data in the database. The API makes it easy to create, access, update, and delete options. All the data is stored in the wp_options table under a given custom name. This page contains the technical documentation needed to use the Options API. A list of default options can be found in the Option Reference (link to Codex version, w
Like any coding standard, the purpose of the WordPress CSS Coding Standards is to create a baseline for collaboration and review within various aspects of the WordPress open source project and community, from core code to themes to plugins. Files within a project should appear as though created by a single entity. Above all else, create code that is readable, meaningful, consistent, and beautiful.
One of the most important files in your WordPress installation is the wp-config.php file. This file is located in the root of your WordPress file directory and contains your website’s base configuration details, such as database connection information. When you first download WordPress, the wp-config.php file isn’t included. The WordPress setup process will create a wp-config.php file for you base
Must-use plugins (a.k.a. mu-plugins) are plugins installed in a special directory inside the content folder and which are automatically enabled on all sites in the installation. Must-use plugins do not show in the default list of plugins on the Plugins page of wp-admin (although they do appear in a special Must-Use section) and cannot be disabled except by removing the plugin file from the must-us
Security in WordPress is taken very seriously, but as with any other system there are potential security issues that may arise if some basic security precautions aren’t taken. This article will go through some common forms of vulnerabilities, and the things you can do to help keep your WordPress installation secure. This article is not the ultimate quick fix to your security concerns. If you have
Core class used for querying users. Description See alsoWP_User_Query::prepare_query(): for information on accepted arguments. More Information This class allows querying WordPress database tables ‘wp_users‘ and ‘wp_usermeta‘. Usage <?php $args = array( . . . ); // The Query $user_query = new WP_User_Query( $args ); // User Loop if ( ! empty( $user_query->get_results() ) ) { foreach ( $user_query-
add_meta_box( string $id, string $title, callable $callback, string|array|WP_Screen $screen = null, string $context = ‘advanced’, string $priority = ‘default’, array $callback_args = null )
Introduction HTTP stands for Hypertext Transfer Protocol and is the foundational communication protocol for the entire Internet. Even if this is your first experience with HTTP it’s likely that you probably understand more than you realize. At its most basic level, HTTP works like this: “Hello server XYZ, may I please have file abc.html” “Well hello there little client, yes you may, here it is” Th
What is AJAX? AJAX is the acronym for Asynchronous JavaScript And XML. XML is a data exchange format and UX is software developer shorthand for User Experience. Ajax is an Internet communications technique that allows a web page displayed in a user’s browser to request specific information from a server and display this new information on the same page without the need to reload the entire page. Y
The easy embedding feature is mostly powered by oEmbed, a protocol for consumers (such as your blog) to ask providers (such as YouTube) for the HTML needed to embed content from the provider. oEmbed is designed to avoid the need to copy and paste HTML from the site hosting the media you wish to embed. It supports different kind of content like videos, images, text, and more. Does This Work With An
Inserts or update a post. Description If the $postarr parameter has ‘ID’ set to a value, then post will be updated. You can set the post date manually, by setting the values for ‘post_date’ and ‘post_date_gmt’ keys. You can close the comments or open the comments by setting the value for ‘comment_status’ key. See alsosanitize_post() Parameters $postarrarrayrequired
On computer file systems, different files and directories have permissions that specify who and what can read, write, modify and access them. This is important because WordPress may need access to write to files in your wp-content directory to enable certain functions. Short explanation Linux file permissions consist primarily of three components — the permissions the owner of the file or folder h
While the LAMP stack (Linux + Apache + MySQL + PHP) is very popular for powering WordPress, it is also possible to use Nginx. WordPress supports Nginx, and some large WordPress sites, such as WordPress.com, are powered by Nginx. When talking about Nginx, it is important to know that there are multiple ways to implement Nginx. It can be setup as a reverse-proxy in front of Apache, which is a very p
Retrieves post categories. Description This tag may be used outside The Loop by passing a post ID as the parameter. Note: This function only returns results from the default "category" taxonomy. For custom taxonomies use get_the_terms() . Parameters $post_idintoptional Default:false Return WP_Term[] Array of WP_Term objects, one for each category assigned to the post. Source function get_the_categ
Outputs a complete commenting form for use within a template. Description Most strings and form fields may be controlled through the $args array passed into the function, while you may also choose to use the ‘comment_form_default_fields’ filter to modify the array of default fields if you’d just like to add a new one or remove a single field. All fields are also individually passed through a filte
次のページ
このページを最初にブックマークしてみませんか?
『WordPress Developer Resources | Official WordPress Developer Resources | Deve...』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く