The newer versions of WordPress, and possibly older ones, open an attachment details modal window when an image is selected in the media library. Is there a way that I can open this modal on a different admin page if I know the attachment’s ID? Specifically, can I click a button and have the modal window open?

WordPress Development Asked by syntacular on November 11, 2021

1 AnswersUnfortunately the logic of the attachment details isn't made to be used standalone - it requires the grid that opens it. You can however use the get_media_item( attachment_id ) method to receive the HTML of the form for modifying images: https://developer.wordpress.org/reference/functions/get_media_item/

Answered by user63350 on November 11, 2021

0 Asked on January 10, 2021 by andersha

1 Asked on January 10, 2021 by user1692333

1 Asked on January 10, 2021

0 Asked on January 9, 2021 by aran-joyce

3 Asked on January 9, 2021 by yevheniy8

2 Asked on January 7, 2021 by edelwater

2 Asked on January 7, 2021 by dragon

3 Asked on January 6, 2021 by juri-rudi

1 Asked on January 6, 2021 by user2680925

1 Asked on January 4, 2021 by botond-vajna

1 Asked on January 4, 2021 by visaudio

1 Asked on January 3, 2021 by davood-kazemi

1 Asked on January 2, 2021 by anton-emery

0 Asked on January 1, 2021 by nicholas-harris

Get help from others!

Recent Answers

- Lutz Lehmann on Differential equation, modulus signs in solution?
- JJacquelin on Differential equation, modulus signs in solution?
- N. Bar on Finding the volume when a parabola is rotated about the line $y = 4$.
- DanielWainfleet on Consider the sequence where $a_1>0$, $ka_n>a_{n+1}$ and $0<k<1$. Can we say it converges?
- Evangelopoulos F. on In a Reflexive banach space, given a closed convex set $C$ and some point $y$, there is a point in $C$, of minimal distance to $y$

Recent Questions

- Finding the volume when a parabola is rotated about the line $y = 4$.
- Differential equation, modulus signs in solution?
- Consider the sequence where $a_1>0$, $ka_n>a_{n+1}$ and $0<k<1$. Can we say it converges?
- In a Reflexive banach space, given a closed convex set $C$ and some point $y$, there is a point in $C$, of minimal distance to $y$
- Ball / Urn question with a twist

© 2021 InsideDarkWeb.com. All rights reserved.