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 );
}