Coder Social home page Coder Social logo

tukutoi / tukutoi-plugin-generator Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 1.0 77 KB

WordPress Plugin that can be used to generate other Plugins based on the Better WordPress Plugin Boilerplate (or any custom boilerplate!)

Home Page: https://generateplugins.com/

License: GNU General Public License v2.0

PHP 97.28% CSS 0.74% JavaScript 1.98%
plugin wordpress wordpress-plugin

tukutoi-plugin-generator's People

Contributors

smilebeda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

dexit

tukutoi-plugin-generator's Issues

Update version of "Tested up to"

$file_contents = str_replace( 'Tested up to: 5.7', 'Tested up to: ' . $new_data['plugin_tested'], $file_contents );, tukutoi-plugin-generator/public/class-tkt-plugin-generator-public.php:314

This will not replace because the BPBP Tested up to: is 5.9...

Check Folder write permission

/builds folder in the plugin needs to be writable. This is an issue in hardly locked down servers.
Workaround is to make it writable, but that might just be unsafe.

I need to check with colleague if and how to do this right (mkdir needs a writable folder, the question is to whom do you give these rights...)

Plugin zip file folder structure

Tested online at https://www.generateplugins.com/#generate-plugin

Would it be better to generate the zip file with all files and folders within a top folder named using the plugin name, so that the folder structure matches that for a WP plugin ready for upload? There was no top folder in the zip downloaded from the online generator.

Also tested locally on XAMPP, the form loaded ok but it froze after completing and then clicking the Generate button, maybe due to my local web server config.

auto replace plugin prefix dash with underscore

Help out a fool and protect me from myself.

I didn't read the tooltip and just typed a dashed plugin prefix, eg:

image

knepp-accom-bookings

It generated it but then I ended up with a fatal error when I installed the plugin because I had created a bunch of invalid php.

image

image

function knepp-accom-bookings_activate() {
	require_once plugin_dir_path( __FILE__ ) . 'includes/class-woocommerce-knepp-accommodation-bookings-activator.php';
	Woocommerce_Knepp_Accommodation_Bookings_Activator::activate();
}

Maybe either implement validation in the form and make us fix it, or implement a replace on the dash / invalid characters before generating the plugin?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.