サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
アメリカ大統領選
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 Blocks in WordPress are typically registered on both the server and client side using `block.json“ metadata. You can use the following filters to modify or extend block settings during their registration on the server with PHP and on the client with JavaScript. To learn more, refer to the block re
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 and the WP-CLI Blog. Commands CommandDescription
Schema The schema defines all the fields that exist within a post record. Any response from these endpoints can be expected to contain the fields below unless the `_filter` query parameter is used or the schema field only appears in a specific context. The date the post was published, in the site's timezone. JSON data type: string or null, Format: datetime (details) Context: view, edit, embed
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.2, 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
wp_oembed_get( string $url, array|string $args = ” ): string|false
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-
Retrieves list of users matching criteria. Description See alsoWP_User_Query Parameters $argsarrayoptional Arguments to retrieve users. See WP_User_Query::prepare_query() for more information on accepted arguments. Default:array() Return array List of users. More Information Return value is an array of IDs, stdClass objects, or WP_User objects, depending on the value of the ‘fields‘ parameter. If
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 )
Inserts a user into the database. Description Most of the $userdata array fields have filters associated with the values. Exceptions are ‘ID’, ‘rich_editing’, ‘syntax_highlighting’, ‘comment_shortcuts’, ‘admin_color’, ‘use_ssl’, ‘user_registered’, ‘user_activation_key’, ‘spam’, and ‘role’. The filters have the prefix ‘pre_user_’ followed by the field name. An example using ‘description’ would have
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
次のページ
このページを最初にブックマークしてみませんか?
『WordPress Developer Resources | Developer.WordPress.org』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く