Articles of get plugin data

“Master” WordPress Multisite – Database Sync

I’ve had an idea in my head about creating a WordPress Multisite environment that would have Plugins along with them that would not only have “default” settings, but be able to update each blog’s plugin options based on a “master” site. That way, instead of having to change settings through every site – you’d be […]

Suggestions on Approach to New Plugin I'm Stuck On

I’m a newbie plugin developer, and I’ve had an idea for what I though would be a simple to build debut plugin, but I seem to have reached a brick wall with it and wonder if anyone can suggest some alternative approaches or even tell me whether it’s even possible. The aim of the plugin […]

Is it save to require plugin.php early to be able to use get_plugin_data() earlier?

I’d like to avoid hard coding my plugin’s version at multiple places. To realize this the function get_plugin_data() comes in handy. But here the fun comes to an unpleasant stop. Checking for a plugin update to execute related housekeeping for example should be done early (e.g. plugins_loaded) but unfortunately wp-admin/includes/plugin.php is not loaded before admin_init […]

WordPress Multisite – get_plugin_data()

I use WordPress Multisite. I have multiple sites with plugins installed. I can successfully get a list of the plugin paths with the option value active_plugins from each site. I can not get additional data from get_plugin data. I use this code: $plugins = get_blog_option($blog_id, ‘active_plugins’); foreach( $plugins as $plugin ) { var_dump( get_plugin_data($plugin) ); […]

Call to undefined function `get_plugin_data()`

I have a class inside a file that i include_once() from the functions.php of my theme. The class can be used as stand alone plugin, or integrated in a theme. Inside the class i want to fill a class variable (inside the __construct() function) with the native wordpress function get_plugin_data(). Fun as it is, i […]

Get file headers in custom file

in my one of my plugins i have modules (kind of like plugins in a plugin), is there a function like get_plugin_data() or wp_get_theme() that will allow me to get the header section of a custom file (by passing the path as a parameter)? By heading section i mean /* Plugin Name: Name Of The […]

Plugins or Tutorials for displaying data from SQL-db on WP-page?

I have a custom weather-station on a Raspberry Pi 3 with a local LAMP-setup running. The sensordata is stored in it’s own database. The job for WordPress is just to have a easy (somewhat) WYSIWYG-possibility to edit the design of the display-page that is shown on a secondary Pi by using a fullscreen-browser. I need […]