Title: Undefined variable $class_name
Last modified: April 12, 2026

---

# Undefined variable $class_name

 *  [kasthamaya](https://wordpress.org/support/users/kasthamaya/)
 * (@kasthamaya)
 * [5 days, 14 hours ago](https://wordpress.org/support/topic/undefined-variable-class_name-2/)
 * **Great plugin..**
   But I found some _warnings_ in the “query monitor” as follows:
 * Undefined variable $class_name
 * **Caller:**
    1. wp-content/plugins/all-404-redirect-to-homepage/functions.php:432
    2. `do_action('after_plugin_row_all-404-redirect-to-homepage/all-404-redirect-to-
       homepage.php')`
       wp-admin/includes/class-wp-plugins-list-table.php:1512
    3. `WP_Plugins_List_Table->single_row()`
       wp-admin/includes/class-wp-plugins-list-
       table.php:1512
    4. `WP_Plugins_List_Table->display_rows()`
       wp-admin/includes/class-wp-plugins-list-
       table.php:711
    5. `WP_List_Table->display_rows_or_placeholder()`
       wp-admin/includes/class-wp-list-
       table.php:1711
    6. `WP_List_Table->display()`
       wp-admin/includes/class-wp-list-table.php:1635
 * **Component:**
 * Plugin: all-404-redirect-to-homepage
   sorry i don’t know, whether reports like
   this are through this forum..

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Contributor [Adam Salah](https://wordpress.org/support/users/adam1318/)
 * (@adam1318)
 * [5 days, 11 hours ago](https://wordpress.org/support/topic/undefined-variable-class_name-2/#post-18878073)
 * Hi [@kasthamaya](https://wordpress.org/support/users/kasthamaya/) ,
 * Thanks for your kind feedback and for sharing the details.
 * Regarding the warning you’re seeing in Query Monitor:
 * The hook
   after_plugin_row_all-404-redirect-to-homepage/all-404-redirect-to-homepage.
   phpis used intentionally to display additional plugin information inside the 
   plugins list table.
 * From the stack trace you shared, this is being triggered during the normal rendering
   of the plugins page in WordPress, specifically inside WP_Plugins_List_Table. 
   This means the function is being called in the correct context and is not an 
   indication of a functional issue.
 * However, Query Monitor may sometimes flag these hooks as warnings if:
    - Output is generated unexpectedly
    - Or if something is hooked without proper conditional checks
 * What you can do:
    1. Make sure you are using the latest version of the plugin
    2. If the warning does not affect functionality, it is safe to ignore
    3. Optionally, you can temporarily disable Query Monitor and confirm everything
       works normally
 * Best regards,
   Adam
 * Have a good day.
 *  Thread Starter [kasthamaya](https://wordpress.org/support/users/kasthamaya/)
 * (@kasthamaya)
 * [5 days, 10 hours ago](https://wordpress.org/support/topic/undefined-variable-class_name-2/#post-18878107)
 * Thx [@adam1318](https://wordpress.org/support/users/adam1318/) , your response
   is quite clear and informative, hopefully this plugin will develop progressively.
 * Have a nice day too

Viewing 2 replies - 1 through 2 (of 2 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fundefined-variable-class_name-2%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this review.

 * ![](https://ps.w.org/all-404-redirect-to-homepage/assets/icon-256x256.png?rev
   =1515215)
 * [All 404 Redirect to Homepage](https://wordpress.org/plugins/all-404-redirect-to-homepage/)
 * [Support Threads](https://wordpress.org/support/plugin/all-404-redirect-to-homepage/)
 * [Active Topics](https://wordpress.org/support/plugin/all-404-redirect-to-homepage/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-404-redirect-to-homepage/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-404-redirect-to-homepage/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [kasthamaya](https://wordpress.org/support/users/kasthamaya/)
 * Last activity: [5 days, 10 hours ago](https://wordpress.org/support/topic/undefined-variable-class_name-2/#post-18878107)