Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Bowo

    (@qriouslad)

    @pexlechris thanks. It should work with objects, at least I’ve built it to work with objects. Can you share some details about how it did not work for you?

    Thread Starter Pexle Chris

    (@pexlechris)

    instead of object I see something like this
    type: object
    scalar: false

    I tried in a website and now I had deactivated

    Plugin Author Bowo

    (@qriouslad)

    @pexlechris noted. Do you have any code you can share around the variable (containing the object) that you wanted to inspect?

    Plugin Author Bowo

    (@qriouslad)

    @pexlechris please find on line 250-251 at https://plugins.trac.www.ads-software.com/browser/variable-inspector/tags/1.4.0/admin/class-variable-inspector-admin.php#L250 the $wp_roles object I’m using for testing, which is showing up just fine as an object on the inspection results page at the moment. e.g. var_dump tab shows “object(WP_Roles)#515… etc”. Try uncommenting line 250-251 on your end and let me know if it works properly.

    I’m going to need more info to be able to replicate the issue you are experiencing (and go try fixing it).

    • This reply was modified 2 years, 1 month ago by Bowo.
    • This reply was modified 2 years, 1 month ago by Bowo.
    • This reply was modified 2 years, 1 month ago by Bowo.
    Thread Starter Pexle Chris

    (@pexlechris)

    I think now works!

    For some occasion in a specific website, when I tried to inspect $wp_query, it said me “scalar”=>true and no object be displayed.

    Thank you for this plugin.

    Plugin Author Bowo

    (@qriouslad)

    @pexlechris good to hear. Noted on how it is not outputting the desired variable content for $wp_query object. Maybe I can replicate and fix as I build future versions.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Great idea as plugin, but not work with objects’ is closed to new replies.