', esc_url( get_bloginfo( 'pingback_url' ) ) ); } } add_action( 'wp_head', 'actify_pingback_header' ); /** * Check if cover section is displayed */ function actify_is_custom_header_active() { if( has_header_image() ) { return true; } return false; } /** * Check if cover section is displayed */ function actify_is_cover_active() { if( get_theme_mod( 'actify_display_cover_section', true ) ) { return true; } return false; } /** * Image sanitization callback */ function actify_sanitize_image( $image, $setting ) { $mimes = array( 'jpg|jpeg|jpe' => 'image/jpeg', 'gif' => 'image/gif', 'png' => 'image/png', 'bmp' => 'image/bmp', 'tif|tiff' => 'image/tiff', 'ico' => 'image/x-icon' ); // Return an array with file extension and mime_type. $file = wp_check_filetype( $image, $mimes ); // If $image has a valid mime_type, return it; otherwise, return the default. return ( $file['ext'] ? $image : $setting->default ); } /** * Fire the wp_body_open action. * * Added for backwards compatibility to support pre 5.2.0 WordPress versions. */ if ( ! function_exists( 'wp_body_open' ) ) : function wp_body_open() { /** * Triggered after the opening tag. * * @since Twenty Nineteen 1.4 */ do_action( 'wp_body_open' ); } endif;