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
| user={{ serverUser }} | |
| site={{ siteName }} | |
| cd /home/$user/$site/current/ | |
| wp language core install nl_NL | |
| wp site switch-language nl_NL | |
| wp theme install hello-elementor | |
| wp theme install https://github.com/finalwebsites/hello-elementor-child/archive/refs/heads/master.zip | |
| wp theme activate hello-elementor-child |
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 | |
| // place the snippet inside the functions.php file from your WordPress child theme | |
| use Elementor\Controls_Manager; | |
| add_action( 'elementor/dynamic_tags/register_tags', function( $dynamic_tags ) { | |
| class Custom_Image_Tag extends Elementor\Core\DynamicTags\Data_Tag { | |
| public function get_name() { | |
| return 'shortcode-image'; | |
| } |
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 | |
| echo ' | |
| <a href="http://mydomain.com/download.php?download_file=some_file.pdf">PHP download file</a>'; |
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 | |
| // add this code to your child theme | |
| add_action('fwsacf_after_success_form', 'fw_add_newsletter_contact_form'); | |
| function fw_add_newsletter_contact_form($form_obj) { | |
| if (!class_exists('FWEO_EmailOctopus_integration')) return; | |
| $data = array('FirstName' => $form_obj['name']); | |
| if (!empty($form_obj['accept_terms'])) { | |
| $data['tags'] = 'newsletter'; | |
| } | |
| $list = get_option('fweo_emailoctopus_list_id'); |
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 | |
| // add this code to the functions.php file from your child theme | |
| add_action( 'woocommerce_before_cart' , 'wc_minimum_order_amount' ); | |
| function wc_minimum_order_amount() { | |
| // Set this variable to specify a minimum order value | |
| $minimum = 250; | |
| $min_passed = true; | |
| $subtotal = WC()->cart->get_subtotal(); | |
| if ( $subtotal < $minimum ) { |
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 | |
| protected function retrieve_form() { | |
| global $wcapf_form; | |
| if ( ! $wcapf_form ) { | |
| return array(); | |
| } | |
| $desired_form = array(); |
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
| # Redirect all http traffic to https | |
| server { | |
| listen 80; | |
| listen [::]:80; | |
| #Replace with your host or domain name | |
| server_name YOURHOSTNAME; | |
| return 301 https://$host$request_uri; | |
| } | |
| server { |
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
| <!doctype html> | |
| <html lang="nl"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>404 - page not found</title> | |
| <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css" integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l" crossorigin="anonymous"> | |
| <style> | |
| body { background: #dedede; } | |
| .page-wrap { min-height: 100vh; } |
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
| # add this code to your .htaccess file (Apache based servers only) | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteBase / | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_URI} \.(jpg|jpeg|png|gif|bmp|ico|css|js|swf|htm|html|txt|php|asp|aspx)$ [NC] | |
| RewriteRule .* - [L,R=404] | |
| </IfModule> |
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 | |
| // replace the template ID 123 with your own | |
| add_filter('ssbm_add_template_data', function($payload, $atts) { | |
| if ($atts['message'] == strip_tags($payload['html'])) { | |
| $message = nl2br($atts['message']); | |
| unset($payload['html']); | |
| $payload['template_id'] = 123; | |
| $payload['template_data'] = json_encode( | |
| array('content' => $message) |
NewerOlder