| Server IP : 157.230.181.24 / Your IP : 216.73.217.11 Web Server : Apache/2.4.58 (Ubuntu) System : Linux conductive 6.8.0-117-generic #117-Ubuntu SMP PREEMPT_DYNAMIC Tue May 5 19:26:24 UTC 2026 x86_64 User : ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/vhosts/untold/app/admin/ |
Upload File : |
<?php
use Themosis\Facades\Action;
use Themosis\Facades\Filter;
// Allow Relevanssi to play nice with Yoast
Filter::add('relevanssi_modify_wp_query', function ($query) {
$query->set('meta_query', '');
return $query;
}, 99);
// Disable tablepress's default styling
Filter::add('tablepress_use_default_css', '__return_false');
/**
* ACF
*/
Filter::add('acf/settings/save_json', function ($path) {
$path = themosis_path('theme.resources') . 'acf-json';
return $path;
});
Filter::add('acf/settings/load_json', function ($paths) {
unset($paths[0]);
$paths[] = themosis_path('theme.resources') . 'acf-json';
return $paths;
});
/**
* Remove posts from admin
*/
add_action('admin_menu', function () {
remove_menu_page('edit.php');
});
/**
* Disable admin bar
*/
show_admin_bar(FALSE);
/**
* Disables query ?page=x rewrites
*/
//add_action('parse_query', function ($query) {
// // Enable for filtering to certain templates
// //if($query->query_vars['pagename'] == 'design-jobs') {
// remove_filter('template_redirect', 'redirect_canonical');
// //}
//});