I deleted the Geo Data Store plugin and reinstalled, in which my code worked upon refresh. I was able to use the functions from the plugin and so on. I casted as an array so as to use the output in my wp_query arguments
$sc_gds = new sc_GeoDataStore();
$ids = (array) $sc_gds->getPostIDsOfInRange( $type, $radius, $lat, $lng );
$args = array('post__in' => $ids, 'post_type' => 'custom_post_type');
Related Posts:
- What does ‘super’ do in Python? – difference between super().__init__() and explicit superclass __init__()
- What is Inversion of Control?
- What is an example of the Liskov Substitution Principle?
- What __init__ and self do in Python?
- When should you use a class vs a struct in C++?
- C++ error ‘Undefined reference to Class::Function()’ [duplicate]
- What’s the difference between a method and a function?
- How do I implement interfaces in python?
- What is polymorphism, what is it for, and how is it used?
- java – invalid method declaration; return type required [duplicate]
- java – invalid method declaration; return type required
- Is C++ an Object Oriented language?
- Difference between abstraction and encapsulation?
- What are metaclasses in Python?
- extends class and implements interface in java
- What is a “driver class”?
- What is difference between functional and imperative programming languages?
- How can I create a copy of an object in Python?
- What is polymorphism in Javascript?
- When should I be using classes in Python?
- How to create a subclass in C#?
- How would one write object-oriented code in C?
- How to get a JavaScript object’s class?
- Inheritance vs. Aggregation [closed]
- What is the difference between an Instance and an Object?
- What does ‘low in coupling and high in cohesion’ mean
- What is an example of the Single Responsibility Principle?
- Will WordPress become completely OOP?
- How to name files of namespaced classes?
- What is the best way to instantiate a class of a plugin in your WordPress theme?
- problem with implementing widget via the_content()
- Load classes using spl_autoload_register
- UML diagrams of WordPress
- Trying to get property of non-object
- Static vs Dynamic methods in WordPress
- Autoloader not finding classes from my plugin
- Integration tests test script enqueue/register fails
- Error of “Call a member function on non object” while var_dump get correct result
- How pass args to wp_list_comments callback?
- Does &$this is really disallowed to use anywhere?
- Don’t filters violate the a class’ local variables visibility rules?
- Admin submenu does not call function to load the page
- How to wait for WordPress Core to load when writing OOP?
- OOP – from plugin add new object and call static method in another file
- How to get parameters with add_filter with a static method?
- Reading from file in c++ ifstream
- Are static class variables possible in Python?
- Error at constructor : Expected an identifier?
- What is Serialization?
- Polymorphism vs Overriding vs Overloading
- Python function overloading
- Why is there no multiple inheritance in Java, but implementing multiple interfaces is allowed?
- How can I design a class named allergy?
- C++ equivalent of java’s instanceof
- PHP error with shortcode handler from a class
- Get plugin_dir_url() from one level deep within plugin
- How to create a flexible abstraction for WP_Query?
- Single Responsibility Principle and WP Classes
- Is it possible to change the attributes of a registered style or script before it fires?
- Best way to extends core classes in theme?
- Wrapper class: How to get rid of call_user_func_array() warning?
- register child class in another plugin
- Where is the “ancestors” post object attribute?
- How to include and use custom class files in plugin?
- set_sale_price in WooCommerce [closed]
- Check to see if page exists problems
- array of objects to do_action, callback gets singular object?
- How do you render_callback for register_block_type to a method in another class?
- How to get media objects
- Advice on plugin structure
- plugin class inheritance. cannot change variable
- What is the proper method of using global $post?
- Using plugin functions/methods within templates
- accessing parent variables in child construct without executing action in parent
- OOP and WordPress shortcode
- admin_notices action doesn’t trigger within save_post action
- Remove an action by extending class and replacing it
- Extend Woocommerce Widget Class – WC_Widget_Product_Categories
- Undefined method class::construct() when creating a plugin
- How to prevent PHP fatal error if plugin hasn’t been enabled and a method is called in theme file?
- Get object for a few selected taxonomies
- Obtaining values from objects
- Cannot remove meta box added through OOP
- Accessing a protected property of a post
- add_action in namespace not working
- FPDF for creating pdf diplomas
- When developing WordPress plugin, is it a good idea to create my class object by hooking to existing class constructor?
- functions won’t fire after I converted my code from procedural code to OOP
- Get post content inside plugin class method
- How to do a sql like query on serialized data of user meta data
- How to access classes in theme of a plugin?
- How to implement AJAX within a class storing shortcode atts as class variables
- Custom meta box using OOP way doesn’t save data
- Property value of null when value is assigned inside a method hooked to the wp action hook
- How to execute add_action() function from custom plugin to Crontrol plugin or do_action()?
- Class property not visible inside ajax callback function?
- How To Remove The Filter That Adds JetPack Related Content To Dom [closed]
- Strict Standards: Non-static method in sidebar generator
- Plugin: Custom menu item problem
- Keeping Objects in Memory