Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update wp_attachment_is() documentation to reflect support for all file types #5578

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

nirav7707
Copy link

@nirav7707 nirav7707 commented Oct 26, 2023


This pull request updates the wp_attachment_is() function documentation to reflect the fact that the function can now be used to check if an attachment is of any type, not just image, audio, or video.

This change is necessary because the wp_attachment_is() function has been updated in recent versions of WordPress to support more types of attachments, such as PDFs, documents, and archives. However, the function documentation has not been updated to reflect this change.

This pull request updates the function documentation to reflect the current capabilities of the function and to make it more accurate and informative for users.

…le types

The wp_attachment_is() function can now be used to check if an attachment is of any type, not just image, audio, or video. This update updates the function documentation to reflect this change.
src/wp-includes/post.php Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants