5.4 Releasing a New Pro Version and Automatically Creating the Zip File

git post-receive hook #!/usr/bin/php <?php /** * Create folders deploy/<plugin name> and releases/ above this remote/ bare git repo */ list( $from, $to, $branch ) = explode( ‘ ‘, trim( stream_get_contents( STDIN ) ) ); if ( false === strpos( $branch, ‘/master’ ) ) { echo “Received branch $branch, exiting”; exit; } $plugin_name = ‘your-plugin-slug-pro’;…

Read More

3.4 What to do when the license expires

Showing Nag Message Use something like the following to show a nag message if license is expired or invalid: function chimpbridge_check_license() { if ( ! chi_fs()->can_use_premium_code() ) { if ( ! isset( $_GET[‘page’] ) or ‘chimpbridge-account’ !== $_GET[‘page’] ) add_action( ‘admin_notices’, ‘chimpbridge_activate_notice’ ); } } add_action( ‘admin_init’, ‘chimpbridge_check_license’ ); function chimpbridge_activate_notice() { echo ‘<div class=”error”><p>’…

Read More

2.04 Preparing the Plugin File for Release

Plugin Copyright/Warranty Notice /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will…

Read More