Thanks again for the help, I did manage to find a solution, it seems like variables from the php files are not passed to the plugin coding, however, functions are. So my workaround has been either creating getters, or by having the conditions for the variable excecuted in the plugin coding.