| Server IP : 46.29.167.47 / Your IP : 216.73.217.69 Web Server : nginx/1.24.0 System : Linux r1113901 6.8.0-117-generic #117-Ubuntu SMP PREEMPT_DYNAMIC Tue May 5 19:26:24 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/pokerguide.ru/wp-content/plugins/seo-by-rank-math/includes/traits/ |
Upload File : |
<?php
/**
* The Shortcode trait.
*
* @since 0.9.0
* @package RankMath
* @subpackage RankMath\Traits
* @author Rank Math <support@rankmath.com>
*/
namespace RankMath\Traits;
defined( 'ABSPATH' ) || exit;
/**
* Trait Shortcode
*/
trait Shortcode {
/**
* Adds a new shortcode
*
* @param string $tag Shortcode tag to be searched in post content.
* @param callable $func The callback function to run when the shortcode is found.
*/
protected function add_shortcode( $tag, $func ) {
\add_shortcode( $tag, [ $this, $func ] );
}
/**
* Removes hook for shortcode.
*
* @param string $tag Shortcode tag to remove hook for.
*/
protected function remove_shortcode( $tag ) {
\remove_shortcode( $tag );
}
}