Where Do I Find the Media ID in WordPress?

The Media ID is a special identifier WordPress uses to identify media files on your site. It’s located in the wp-config.

php file. To find it, open your wp-config.php file and look for the following line:.

define( ‘WP_MEMORY_LIMIT’, ‘128M’ );

This line sets the WordPress memory limit to 128M. The Media ID is located just below it, in the define() function:

define() function:

The first two arguments are the maximum size of the WordPress memory pool and the second argument is the maximum size of any installed media files.