📁
SKYSHELL MANAGER
PHP v8.4.21
Create
Create
Path:
root
/
home
/
mauriuph
/
jobmaurice.com
/
wp-includes
/
Name
Size
Perm
Actions
📁
ID3
-
0755
🗑️
🏷️
🔒
📁
IXR
-
0755
🗑️
🏷️
🔒
📁
PHPMailer
-
0755
🗑️
🏷️
🔒
📁
Requests
-
0755
🗑️
🏷️
🔒
📁
SimplePie
-
0755
🗑️
🏷️
🔒
📁
Text
-
0755
🗑️
🏷️
🔒
📁
abilities-api
-
0755
🗑️
🏷️
🔒
📁
ai-client
-
0755
🗑️
🏷️
🔒
📁
assets
-
0755
🗑️
🏷️
🔒
📁
block-bindings
-
0755
🗑️
🏷️
🔒
📁
block-patterns
-
0755
🗑️
🏷️
🔒
📁
block-supports
-
0755
🗑️
🏷️
🔒
📁
blocks
-
0755
🗑️
🏷️
🔒
📁
build
-
0755
🗑️
🏷️
🔒
📁
certificates
-
0755
🗑️
🏷️
🔒
📁
collaboration
-
0755
🗑️
🏷️
🔒
📁
css
-
0755
🗑️
🏷️
🔒
📁
customize
-
0755
🗑️
🏷️
🔒
📁
fonts
-
0755
🗑️
🏷️
🔒
📁
html-api
-
0755
🗑️
🏷️
🔒
📁
images
-
0755
🗑️
🏷️
🔒
📁
js
-
0755
🗑️
🏷️
🔒
📁
l10n
-
0755
🗑️
🏷️
🔒
📁
php-ai-client
-
0755
🗑️
🏷️
🔒
📁
php-compat
-
0755
🗑️
🏷️
🔒
📁
pomo
-
0755
🗑️
🏷️
🔒
📁
rest-api
-
0755
🗑️
🏷️
🔒
📁
sitemaps
-
0755
🗑️
🏷️
🔒
📁
sodium_compat
-
0755
🗑️
🏷️
🔒
📁
style-engine
-
0755
🗑️
🏷️
🔒
📁
theme-compat
-
0755
🗑️
🏷️
🔒
📁
widgets
-
0755
🗑️
🏷️
🔒
📄
.htaccess
2 KB
0664
🗑️
🏷️
⬇️
✏️
🔒
📄
abilities-api.php
23.8 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
abilities.php
7.82 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
admin-bar.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
admin.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
ai-client.php
2.49 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
atomlib.php
11.9 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
block-bindings.php
7.35 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
block-editor.php
28.05 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
block-template-utils.php
61.33 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
cache-compat.php
10.76 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
capabilities.php
42.61 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
category.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-feed.php
0.53 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-oembed.php
0.39 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-snoopy.php
36.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-walker-nav-menu.php
11.76 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-block-bindings-source.php
2.92 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-block-list.php
4.6 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-block-metadata-registry.php
11.57 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-block-parser-frame.php
1.95 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-block-parser.php
11.25 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-block-template.php
1.99 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-customize-manager.php
198.13 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-date-query.php
35.13 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-embed.php
15.54 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-exception.php
0.25 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-fatal-error-handler.php
7.96 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-feed-cache-transient.php
3.23 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-image-editor-imagick.php
36.11 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-image-editor.php
17.01 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-locale-switcher.php
6.62 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-meta-query.php
29.79 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-metadata-lazyloader.php
6.67 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-network-query.php
19.25 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-network.php
12.01 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-oembed-controller.php
6.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-oembed.php
30.86 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-paused-extensions-storage.php
4.95 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-query.php
159.5 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-recovery-mode-cookie-service.php
6.72 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-recovery-mode-email-service.php
10.9 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-recovery-mode-key-service.php
4.8 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-recovery-mode.php
11.18 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-session-tokens.php
7.15 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-simplepie-sanitize-kses.php
1.87 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-site.php
7.28 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-speculation-rules.php
7.38 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-styles.php
13.04 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-taxonomy.php
18.12 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-text-diff-renderer-inline.php
0.96 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-textdomain-registry.php
10.24 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-theme-json-data.php
1.77 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-theme.php
64.22 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-url-pattern-prefixer.php
4.69 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-user-query.php
43.07 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp-user-request.php
2.25 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class-wp.php
25.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
class.wp-scripts.php
0.33 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
comment-template.php
100.79 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
compat.php
15.69 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
cron.php
0.14 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
default-filters.php
36.54 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
default-widgets.php
2.24 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
deprecated.php
189.43 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
error_log
2.68 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
feed-atom-comments.php
5.38 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
feed.php
24.6 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
fonts.php
9.56 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
functions.php
0.12 KB
0664
🗑️
🏷️
⬇️
✏️
🔒
📄
functions.wp-styles.php
8.45 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
general-template.php
170.94 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
global-styles-and-settings.php
20.29 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
https-detection.php
5.72 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
https-migration.php
4.63 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
l10n.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
load.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
locale.php
0.16 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
media.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
ms-default-constants.php
4.81 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
ms-functions.php
89.69 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
ms-site.php
40.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
nav-menu.php
43.23 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
pluggable.php
124.57 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
post-formats.php
6.9 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
post-thumbnail-template.php
10.62 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
post.php
289.58 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
rest-api.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
rss.php
22.66 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
script-loader.php
159.3 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
session.php
0.25 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
speculative-loading.php
8.4 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
style-engine.php
7.39 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
taxonomy.php
172.99 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
template-loader.php
4.32 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
template.php
35.96 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
theme-i18n.json
1.85 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
theme-previews.php
2.82 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
theme.json
8.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
theme.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
user.php
174.63 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
vars.php
6.45 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
widgets.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-cron.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
xmlrpc.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: block-bindings.php
<?php /** * Block Bindings API * * Contains functions for managing block bindings in WordPress. * * @package WordPress * @subpackage Block Bindings * @since 6.5.0 */ /** * Registers a new block bindings source. * * Registering a source consists of defining a **name** for that source and a callback function specifying * how to get a value from that source and pass it to a block attribute. * * Once a source is registered, any block that supports the Block Bindings API can use a value * from that source by setting its `metadata.bindings` attribute to a value that refers to the source. * * Note that `register_block_bindings_source()` should be called from a handler attached to the `init` hook. * * * ## Example * * ### Registering a source * * First, you need to define a function that will be used to get the value from the source. * * function my_plugin_get_custom_source_value( array $source_args, $block_instance, string $attribute_name ) { * // Your custom logic to get the value from the source. * // For example, you can use the `$source_args` to look up a value in a custom table or get it from an external API. * $value = $source_args['key']; * * return "The value passed to the block is: $value" * } * * The `$source_args` will contain the arguments passed to the source in the block's * `metadata.bindings` attribute. See the example in the "Usage in a block" section below. * * function my_plugin_register_block_bindings_sources() { * register_block_bindings_source( 'my-plugin/my-custom-source', array( * 'label' => __( 'My Custom Source', 'my-plugin' ), * 'get_value_callback' => 'my_plugin_get_custom_source_value', * ) ); * } * add_action( 'init', 'my_plugin_register_block_bindings_sources' ); * * ### Usage in a block * * In a block's `metadata.bindings` attribute, you can specify the source and * its arguments. Such a block will use the source to override the block * attribute's value. For example: * * <!-- wp:paragraph { * "metadata": { * "bindings": { * "content": { * "source": "my-plugin/my-custom-source", * "args": { * "key": "you can pass any custom arguments here" * } * } * } * } * } --> * <p>Fallback text that gets replaced.</p> * <!-- /wp:paragraph --> * * @since 6.5.0 * * @param string $source_name The name of the source. It must be a string containing a namespace prefix, i.e. * `my-plugin/my-custom-source`. It must only contain lowercase alphanumeric * characters, the forward slash `/` and dashes. * @param array $source_properties { * The array of arguments that are used to register a source. * * @type string $label The label of the source. * @type callable $get_value_callback A callback executed when the source is processed during block rendering. * The callback should have the following signature: * * `function( $source_args, $block_instance, $attribute_name ): mixed` * - @param array $source_args Array containing source arguments * used to look up the override value, * i.e. {"key": "foo"}. * - @param WP_Block $block_instance The block instance. * - @param string $attribute_name The name of an attribute. * The callback has a mixed return type; it may return a string to override * the block's original value, null, false to remove an attribute, etc. * @type string[] $uses_context Optional. Array of values to add to block `uses_context` needed by the source. * } * @return WP_Block_Bindings_Source|false Source when the registration was successful, or `false` on failure. */ function register_block_bindings_source( string $source_name, array $source_properties ) { return WP_Block_Bindings_Registry::get_instance()->register( $source_name, $source_properties ); } /** * Unregisters a block bindings source. * * @since 6.5.0 * * @param string $source_name Block bindings source name including namespace. * @return WP_Block_Bindings_Source|false The unregistered block bindings source on success and `false` otherwise. */ function unregister_block_bindings_source( string $source_name ) { return WP_Block_Bindings_Registry::get_instance()->unregister( $source_name ); } /** * Retrieves the list of all registered block bindings sources. * * @since 6.5.0 * * @return WP_Block_Bindings_Source[] The array of registered block bindings sources. */ function get_all_registered_block_bindings_sources() { return WP_Block_Bindings_Registry::get_instance()->get_all_registered(); } /** * Retrieves a registered block bindings source. * * @since 6.5.0 * * @param string $source_name The name of the source. * @return WP_Block_Bindings_Source|null The registered block bindings source, or `null` if it is not registered. */ function get_block_bindings_source( string $source_name ) { return WP_Block_Bindings_Registry::get_instance()->get_registered( $source_name ); } /** * Retrieves the list of block attributes supported by block bindings. * * @since 6.9.0 * * @param string $block_type The block type whose supported attributes are being retrieved. * @return array The list of block attributes that are supported by block bindings. */ function get_block_bindings_supported_attributes( $block_type ) { $block_bindings_supported_attributes = array( 'core/paragraph' => array( 'content' ), 'core/heading' => array( 'content' ), 'core/image' => array( 'id', 'url', 'title', 'alt', 'caption' ), 'core/button' => array( 'url', 'text', 'linkTarget', 'rel' ), 'core/post-date' => array( 'datetime' ), 'core/navigation-link' => array( 'url' ), 'core/navigation-submenu' => array( 'url' ), ); $supported_block_attributes = isset( $block_type, $block_bindings_supported_attributes[ $block_type ] ) ? $block_bindings_supported_attributes[ $block_type ] : array(); /** * Filters the supported block attributes for block bindings. * * @since 6.9.0 * * @param string[] $supported_block_attributes The block's attributes that are supported by block bindings. * @param string $block_type The block type whose attributes are being filtered. */ $supported_block_attributes = apply_filters( 'block_bindings_supported_attributes', $supported_block_attributes, $block_type ); /** * Filters the supported block attributes for block bindings. * * The dynamic portion of the hook name, `$block_type`, refers to the block type * whose attributes are being filtered. * * @since 6.9.0 * * @param string[] $supported_block_attributes The block's attributes that are supported by block bindings. */ $supported_block_attributes = apply_filters( "block_bindings_supported_attributes_{$block_type}", $supported_block_attributes ); return $supported_block_attributes; }
Save