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 | |
// Make sure you replace the following in the example: | |
// - META_KEY_HERE | |
// - LABEL_HERE | |
// - VISUAL_GROUP_LABEL_HERE | |
// Register your new Dynamic Content fields: | |
add_filter( 'et_builder_custom_dynamic_content_fields', function ( $custom_fields, $post_id, $raw_custom_fields ) { | |
$custom_fields['custom_meta_META_KEY_HERE'] = array( | |
'label' => esc_html( 'LABEL_HERE' ), |
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
server { | |
listen 80; | |
server_name domain | |
root /var/www/vhosts/domain; | |
if (!-e $request_filename) { | |
rewrite /wp-admin$ $scheme://$host$uri/ permanent; | |
rewrite ^(/[^/]+)?(/wp-.*) /wp$2 last; | |
rewrite ^(/[^/]+)?(/.*\.php)$ /wp$2 last; | |
} |