HEX
Server: nginx/1.27.1
System: Linux in-4 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
User: ilikadirect (1186)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v6964/testingff/public_html/fdfctr/wp-content/plugins/connections/includes/functions.php
<?php

use Connections_Directory\Taxonomy;
use Connections_Directory\Taxonomy\Registry;
use function Connections_Directory\Sitemaps\createProvider;
use function Connections_Directory\Sitemaps\registerProvider;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Add a new sitemap provider.
 *
 * NOTE: The `$name` parameter  must be characters a thru z only in all lowercase.
 *       This is a requirement of the core WordPress sitemaps feature.
 *
 * @since 10.0
 *
 * @param int    $id   The post ID to create providers for.
 * @param string $name Unique name for the sitemap provider.
 *
 * @return bool
 */
function cn_register_sitemap_provider( $id, $name ) {

	$provider = createProvider( $id, $name );

	return registerProvider( $name, $provider );
}

/**
 * Register a taxonomy.
 *
 * @since 10.2
 *
 * @param string $taxonomy
 * @param array  $args
 *
 * @return Taxonomy|WP_Error
 */
function cn_register_taxonomy( $taxonomy, $args = array() ) {

	// Get the taxonomy registry.
	$taxonomies = Registry::get();

	return $taxonomies->register( $taxonomy, $args );
}