Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Bushstar

    (@bushstar)

    Actually, I have solved this but I am not sure it is best practice. In PluginB I have updated it to the following.

    class PluginB {
        public function plugina_check() {
            // Check to see if plugin is active is true
            if (in_array('plugina/class-plugina.php', get_option('active_plugins')) {
                // Create mew object
                $new_example = new PluginA();
    
                // The next call throws Undefined variable $example
                $result = $new_example->check();
            }
        }
    }

    I assumed that the first objected created should be available to other plugins and that creating a second object would be unnecessary. I have now created two objects of the PluginA class.

    Bushstar

    (@bushstar)

    On the 4 images limit, I think that you have missed the ‘Add more images’ link on the add auction page where you can add multiple images more to your listing.

    This is a really unfair review. This is a very simple plugin that works. What you are expecting is an education on how to use WordPress. As plugins go this one could not really be any simpler.

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