This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| Plugin Name: Blog Info Shortcode | |
| Plugin URI: https://fullworks.net/ | |
| Description: Blog Info Shortcode | |
| Version: 1.0 | |
| Author: Alan | |
| Author URI: https://fullworks.net/ | |
| License: GPL2 | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| Plugin Name: Show User Roles | |
| Plugin URI: https://fullworks.net/ | |
| Description: Show User Roles | |
| Version: 2.1 | |
| Author: Alan | |
| Author URI: https://fullworks.net/ | |
| License: GPL2 | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * usage [thecontent 'id-1234] | |
| * works fine in elementor | |
| * but not gutenberg | |
| **/ | |
| add_shortcode( 'thecontent', function ( $atts ) { | |
| $a = shortcode_atts( | |
| array( | |
| 'id' => '1', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Plugin Name: Set Admin Colour on Staging and Dev | |
| * Plugin URI: http://fullworks.net/ | |
| * Description: Set Admin Colour on staging and dev sites: locahost staginxyx.mydomain mydomain.local mydomain.dev | |
| * Version: 1.0 | |
| * Author: Fullworks | |
| * Author URI: http://fullworks.net/ | |
| * License: GPL-3.0+ | |
| * License URI: http://www.gnu.org/licenses/gpl-3.0.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| Plugin Name: Date Picker Issue | |
| Plugin URI: https:// | |
| Description: Shortcode [datetest] this plugin demonstrates that the id selector does not work when The7 theme is active with WP Bakery and on the WooCommerce shop page | |
| Version: 0.1 | |
| Author: Alan | |
| */ | |
| add_action('wp_enqueue_scripts', function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Must use plugin that deactivates WP Bakery on the shop page only | |
| */ | |
| // Don't allow direct execution | |
| if ( ! defined( 'WPINC' ) ) { | |
| die; | |
| } | |
| $request_uri = parse_url( $_SERVER['REQUEST_URI'], PHP_URL_PATH ); | |
| add_filter( 'option_active_plugins', function ( $plugins ) use ( $request_uri ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| Plugin Name: Age Shortcode | |
| Plugin URI: https://fullworks.net | |
| Description: Shortcode [age dob="28 feb 1971"] display age based on dob | |
| Version: 0.1 | |
| Author: Alan | |
| */ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| BUCKET=$1 | |
| if [ -z "$BUCKET" ] | |
| then | |
| echo "-bucket must be specified" | |
| exit 1; | |
| fi | |
| d=`date +%Y-%m-%d` | |
| wproot="${HOME}/public_html" # change this to your actual wordpress directory | |
| echo "`date`" - WordPress Backup started |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| BUCKET=$1 | |
| if [ -z "$BUCKET" ] | |
| then | |
| echo "-bucket must be specified" | |
| exit 1; | |
| fi | |
| d=`date +%Y-%m-%d` | |
| wproot="${HOME}/public_html" # change this to your actual wordpress directory | |
| echo "`date`" - WordPress Backup started |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| (function ($) { | |
| 'use strict'; | |
| $(document).ready(function ($) { | |
| $("#input_1_7").blur(function () { | |
| $(this).val('£' + $(this).val().replace(/[^0-9]+/g, '')); | |
| }); | |
| }); | |
| })(jQuery); |