How to get attachment file name by id? @wordpress
$attachment_id = 100; // attachment id
$thumbnail_name = basename ( get_attached_file( $attachment_id ) );
$attachment_id = 100; // attachment id
$thumbnail_name = basename ( get_attached_file( $attachment_id ) );
Share this post:
Account
Site
Copyright © 2022 AmitpalSingh.com, doing business as Woocoders. All Rights Reserved.
Got a Question? Check out our FAQ Section.