HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux ip-172-31-42-149 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025 aarch64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //proc/self/cwd/wp-content/plugins/code-snippets/php/functions.php
<?php

/**
 * Fetch the admin menu slug for a snippets menu
 *
 * @deprecated Use code_snippets()->get_menu_slug() instead
 *
 * @param string $menu The menu to retrieve the slug for
 *
 * @return string The menu slug
 */
function code_snippets_get_menu_slug( $menu = '' ) {
	return code_snippets()->get_menu_slug( $menu );
}

/**
 * Fetch the URL to a snippets admin menu
 *
 * @deprecated Use code_snippets()->get_menu_url() instead
 *
 * @param string $menu The menu to retrieve the URL to
 * @param string $context The URL scheme to use
 *
 * @return string The menu URL
 */
function code_snippets_get_menu_url( $menu = '', $context = 'self' ) {
	return code_snippets()->get_menu_url( $menu, $context );
}

/**
 * Fetch the admin menu slug for a snippets menu
 *
 * @deprecated Use code_snippets()->get_snippet_edit_url() instead
 *
 * @param int    $snippet_id The snippet
 * @param string $context The URL scheme to use
 *
 * @return string The URL to the edit snippet page for that snippet
 */
function get_snippet_edit_url( $snippet_id, $context = 'self' ) {
	return code_snippets()->get_snippet_edit_url( $snippet_id, $context );
}

/**
 * Get the required capability to perform a certain action on snippets.
 * Does not check if the user has this capability or not.
 *
 * If multisite, checks if *Enable Administration Menus: Snippets* is active
 * under the *Settings > Network Settings* network admin menu
 *
 * @deprecated Use code_snippets()->get_cap() instead
 * @since 2.0
 * @return string The capability required to manage snippets
 */
function get_snippets_cap() {
	return code_snippets()->get_cap();
}

/**
 * Return the appropriate snippet table name
 *
 * @deprecated Use code_snippets()->db->get_table_name() instead
 * @since 2.0
 *
 * @param string|bool|null $multisite Retrieve the multisite table name or the site table name?
 *
 * @return string The snippet table name
 */
function get_snippets_table_name( $multisite = null ) {
	return code_snippets()->db->get_table_name( $multisite );
}