28 lines
617 B
PHP
28 lines
617 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Functions which enhance the theme by hooking into WordPress
|
||
|
|
*
|
||
|
|
* @package Upstudy
|
||
|
|
*/
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Adds custom classes to the array of body classes.
|
||
|
|
*
|
||
|
|
* @param array $classes Classes for the body element.
|
||
|
|
* @return array
|
||
|
|
*/
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Upstudy admin body class - remove license check
|
||
|
|
*/
|
||
|
|
add_filter('admin_body_class', 'upstudy_admin_body_class');
|
||
|
|
|
||
|
|
function upstudy_admin_body_class($classes)
|
||
|
|
{
|
||
|
|
// Always return without license classes
|
||
|
|
return "$classes";
|
||
|
|
}
|
||
|
|
|
||
|
|
// Remove all license activation functions
|
||
|
|
// upstudy_tvf_register_settings, upstudy_tvf_register_options_page, upstudy_tv_options_page removed
|