Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can trigger own functionality when transpiling? #10

Open
leoloso opened this issue Sep 27, 2021 · 1 comment
Open

Can trigger own functionality when transpiling? #10

leoloso opened this issue Sep 27, 2021 · 1 comment

Comments

@leoloso
Copy link

leoloso commented Sep 27, 2021

I have a WordPress plugin, coded in 8.0, to be transpiled to 7.1. The required PHP version must be indicated in the plugin's main file header:

<?php
/*
Requires PHP: 8.0
*/

Is it possible to inject some custom functionality, so that when we trigger the transpiling, this header is converted into this?

<?php
/*
Requires PHP: 7.1
*/
@danog
Copy link
Contributor

danog commented Sep 27, 2021

Absolutely, I actually already prepared most of the logic needed for custom phabel plugins, I just need to enable the functionality in the composer plugin, will do ASAP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants