This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command
$ docker-compose up -d
# To Tear Down
$ docker-compose down --volumes
| server { | |
| # Add the following to your default server block: | |
| rewrite /robots\.txt$ /index.php?robots=1 last; | |
| } |
| <?php | |
| /** | |
| * Add meta box for custom tab content | |
| */ | |
| add_filter( 'bright_custom_meta_options', 'bright_course_custom_meta' ); | |
| function bright_course_custom_meta($options){ | |
| $options[] = array( |
| <?php | |
| /* | |
| This script will allow you to send a custom email from anywhere within wordpress | |
| but using the woocommerce template so that your emails look the same. | |
| Created by [email protected] on 27th of July 2017 | |
| Put the script below into a function or anywhere you want to send a custom email | |
| */ |
| /* | |
| * Custom AJAX spinner on WooCommerce checkout | |
| * The class used to load the overlay is .blockUI .blockOverlay | |
| * The class used to load the spinner is .woocommerce .loader:before | |
| * | |
| */ | |
| .woocommerce .blockUI.blockOverlay:before,.woocommerce .loader:before { | |
| height: 3em; | |
| width: 3em; | |
| position: absolute; |
| <?php | |
| add_action('wp_ajax_register_user_front_end', 'register_user_front_end', 0); | |
| add_action('wp_ajax_nopriv_register_user_front_end', 'register_user_front_end'); | |
| function register_user_front_end() { | |
| $new_user_name = stripcslashes($_POST['new_user_name']); | |
| $new_user_email = stripcslashes($_POST['new_user_email']); | |
| $new_user_password = $_POST['new_user_password']; | |
| $user_nice_name = strtolower($_POST['new_user_email']); | |
| $user_data = array( | |
| 'user_login' => $new_user_name, |
| <?php | |
| //------------- Remove comment Title Reply + before & after notes | |
| add_filter( 'comment_form_defaults', 'afn_custom_comment_form' ); | |
| function afn_custom_comment_form($no_fields) { | |
| $no_fields['comment_notes_before'] = ''; // Removes comment before notes | |
| $no_fields['comment_notes_after'] = ''; // Removes comment after notes | |
| $no_fields['title_reply'] =''; // Remove Title Reply | |
| return $no_fields; | |
| } |