Uname:Linux sxb1plmcpnl510317.prod.sxb1.secureserver.net 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64

403WebShell
403Webshell
Server IP : 92.204.28.36  /  Your IP : 216.73.217.69
Web Server : Apache
System : Linux sxb1plmcpnl510317.prod.sxb1.secureserver.net 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64
User : f981716tud7w ( 9071646)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/f981716tud7w/public_html/maasala.co.uk/www/wp-content/themes/hello-theme-child/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/f981716tud7w/public_html/maasala.co.uk/www/wp-content/themes/hello-theme-child/functions.php
<?php
/**
 * Theme functions and definitions
 *
 * @package HelloElementorChild
 */

/**
 * Load child theme css and optional scripts
 *
 * @return void
 */

//global $post;




// Use my own custom images

add_action('after_setup_theme', 'images_setup');

function images_setup() {

    add_theme_support('post-thumbnails');

    if (function_exists('add_image_size')) {
	add_image_size( 'featured-large', 800, 600, true ); // width, height, crop
	add_image_size( 'featured-medium', 400, 300, true );
	add_image_size( 'featured-small', 200, 150, true );
    }
    // Getting these sizes to appear in the media section within wordpress
    add_filter('image_size_names_choose', 'my_custom_image_sizes');

    function my_custom_image_sizes($sizes) {
        $custom_sizes = array(
            //'custom-post-thumbnail' => 'Custom Post Thumbnail',
            'featured-large' => 'Featured large',
            'featured-medium' => 'Featured medium',
            'featured-small' => 'Featured small',
        );

        return array_merge($sizes, $custom_sizes);
    }

}




function hello_elementor_child_enqueue_scripts() {
	wp_enqueue_style(
		'hello-elementor-child-style',
		get_stylesheet_directory_uri() . '/style.css',
		[
			'hello-elementor-theme-style',
		],
		'1.0.0'
	);
}
add_action( 'wp_enqueue_scripts', 'hello_elementor_child_enqueue_scripts' );


/* MENU ORDERING - BEGIN */

function custom_menu_order($menu_ord) {
    if (!$menu_ord) return true;
     
    return array(

    );
}
add_filter('custom_menu_order', 'custom_menu_order'); // Activate custom_menu_order
add_filter('menu_order', 'custom_menu_order');

 
function remove_admin_bar_links() {
	global $wp_admin_bar;
	$wp_admin_bar->remove_menu('wp-logo');
	$wp_admin_bar->remove_menu('updates');
	$wp_admin_bar->remove_menu('smart_slider_3');
}
add_action( 'wp_before_admin_bar_render', 'remove_admin_bar_links' );



function add_site_name_admin_bar_link() {
	global $wp_admin_bar;
	// Add sub menu link "View recipes, blogs"
	if (is_admin()) {
		$wp_admin_bar->add_menu( array(
			'parent' => 'site-name',
			'id'     => 'wp-admin-bar-site-name-recipes',
			'title' => __( 'View Recipes'),
			'href' => __('/recipes'),
		));

		// Add sub menu link "View recipes, blogs"
		$wp_admin_bar->add_menu( array(
			'parent' => 'site-name',
			'id'     => 'wp-admin-bar-site-name-blog',
			'title' => __( 'View Blog'),
			'href' => __('/blog'),
		));
	}

}
add_action('admin_bar_menu', 'add_site_name_admin_bar_link', 27);


function lwp_4056_bottom_admin_bar()
{
    ?>
    <style>
        div#wpadminbar {
            top: auto;
            bottom: 0;
            position: fixed;
        }
        .ab-sub-wrapper {
            bottom: 32px;
        }
        html[lang] {
            margin-top: 0 !important;
            margin-bottom: 32px !important;
        }
        @media screen and (max-width: 782px){
            .ab-sub-wrapper {
                bottom: 46px;
            }
            html[lang] {
                margin-bottom: 46px !important;
            }
        }
    </style>
    <?php
}
function lwp_4056_check_username()
{
    if(is_admin()) return;
    //$user = wp_get_current_user();
   // if($user && isset($user->user_login) && 'johndoe' === $user->user_login) {
        // Remove extra conditions after $user from above to apply for everyone
        add_action('wp_head', 'lwp_4056_bottom_admin_bar', 100);
   // }
}
add_action('init', 'lwp_4056_check_username');

/* MENU ORDERING - END */





function example_disable_all_comments_and_pings() {

	// Turn off comments
	if( '' != get_option( 'default_ping_status' ) ) {
		update_option( 'default_ping_status', '' );
	} // end if

	// Turn off pings
	if( '' != get_option( 'default_comment_status' ) ) {
		update_option( 'default_comment_status', '' );
	} // end if

} // end example_disable_all_comments_and_pings
add_action( 'after_setup_theme', 'example_disable_all_comments_and_pings' );


add_filter( 'big_image_size_threshold', '__return_false' );


Youez - 2016 - github.com/yon3zu
LinuXploit