B
B
Boris Shpakovsky2018-03-10 19:33:29
WordPress
Boris Shpakovsky, 2018-03-10 19:33:29

Is it possible to get the plugin version from a string in a file in the TGM Plugin Activaton class?

The essence of the question is this: In the TGMPA class there is a parameter

'version'            => 'тут номер версии', // E.g. 1.0.0. If set, the active plugin must be this version or higher. If the plugin version is higher than the plugin version installed, the user will be notified to update the plugin.

Plugins in TGMPA are installed from my dropbox, for example:
'source'    => 'https://www.dropbox.com/s/blablabla323032/plugin.zip?dl=1',

And actually the question: is it possible to pull out the version number from it when updating a file in the dropbox and display it in
'version' => ' ', ?
The documentation states that you need to enter the version manually so that TGMPA sees that an update is available, you don’t want to do it manually every time, I would like to automate the process. If this option is not possible, then maybe there are some other options to simplify the task, and you and your colleagues will be able to suggest them.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question