| Server IP : 23.111.136.34 / Your IP : 216.73.216.136 Web Server : Apache System : Linux servidor.eurohost.com.br 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : meusitei ( 1072) PHP Version : 5.6.40 Disable Function : show_source, system, shell_exec, passthru, proc_open MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/meusitei/www/wp-content/plugins/code-snippets/php/ |
Upload File : |
<?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 );
}