Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author manojtd

    (@manojtd)

    I will take a look. Thanks.

    Thread Starter aspradeep88

    (@aspradeep88)

    Ok Thanks

    Plugin Author manojtd

    (@manojtd)

    Plugin Check does a static analysis, and it doesn’t know the types of variables such as $wpdb. So it cannot find their member functions. But in a future version, I will try to implement a lookup of some of the common global variables.

    Thread Starter aspradeep88

    (@aspradeep88)

    Ok Thanks, Is there any other workout for my plugin to avoid this error?

    Thanks,
    Pradeep.S

    Plugin Author manojtd

    (@manojtd)

    I implemented the following global-to-classname lookup:

    array('$wp_query' => 'WP_Query',
          '$wp_rewrite' => 'WP_Rewrite',
          '$wp' => 'WP',
          '$wpdb' => 'wpdb',
          '$wp_roles' => 'WP_Roles',
          'wp_filesystem' => 'WP_Filesystem_Base')

    It is available only in the Pro version for now. Will look into porting it over to the lite version as well. Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘$wpdb::get_var Method not found’ is closed to new replies.