Title: Hardcoded wp-content path in consentmanager.php
Last modified: August 21, 2025

---

# Hardcoded wp-content path in consentmanager.php

 *  [Simon Mista](https://wordpress.org/support/users/simonmista/)
 * (@simonmista)
 * [9 months, 1 week ago](https://wordpress.org/support/topic/hardcoded-wp-content-path-in-consentmanager-php/)
 * In web/app/plugins/consent-manager/consentmanager.php, the menu icon path is 
   hardcoded to /wp-content/…:
 * `add_menu_page( 'consentmanager options', 'consentmanager', 'manage_options',
   ConsentManagerMain::getAdminUrlConst(), 'consentManager_display_admin_page', '/
   wp-content/plugins/consent-manager/assets/images/logo20.png', 80 );`
 * This breaks on installations with a custom `WP_CONTENT_DIR` / `WP_CONTENT_URL`.
 * Please make the path dynamic using WordPress functions, e.g.:
 * `$icon_url = plugins_url('assets/images/logo20.png', __FILE__);`
 * Thanks!

Viewing 1 replies (of 1 total)

 *  Thread Starter [Simon Mista](https://wordpress.org/support/users/simonmista/)
 * (@simonmista)
 * [7 months, 4 weeks ago](https://wordpress.org/support/topic/hardcoded-wp-content-path-in-consentmanager-php/#post-18666487)
 * Any update on this issue?

Viewing 1 replies (of 1 total)

The topic ‘Hardcoded wp-content path in consentmanager.php’ is closed to new replies.

 * ![](https://ps.w.org/consent-manager/assets/icon-256x256.png?rev=2568880)
 * [consentmanager Cookie Banner](https://wordpress.org/plugins/consent-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/consent-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/consent-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/consent-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/consent-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/consent-manager/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [Simon Mista](https://wordpress.org/support/users/simonmista/)
 * Last activity: [7 months, 4 weeks ago](https://wordpress.org/support/topic/hardcoded-wp-content-path-in-consentmanager-php/#post-18666487)
 * Status: not resolved