This file contains 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_action( 'wp_image_editors', function() { | |
return array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' ); | |
} ); |
This file contains 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
RewriteCond %{QUERY_STRING} ^(.*?)(&?(?:fbclid|gclid|utm_source|utm_medium|utm_campaign|utm_term|utm_content)=[a-zA-Z0-9_-]+)(.*?)$ | |
RewriteRule ^(.*)$ /$1?%1%3 [L,NE] |
This file contains 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_filter( 'document_title_parts', function( $title ) { | |
if ( is_home() || is_front_page() ) { | |
unset($title['tagline']); | |
} | |
return $title; | |
} ); |
This file contains 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_filter( 'document_title_parts', function( $title ) { | |
unset( $title['site'] ); | |
return $title; | |
} ); |
This file contains 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
if ($query_string ~ "^(?<pre>.*?)(&?fbclid=[a-zA-Z0-9_-]+)(?<post>.*?)$"){ | |
rewrite ^(.*)$ $1?$pre$post?; | |
} | |
if ($query_string ~ "^(?<pre>.*?)(&?utm_source=[a-zA-Z0-9_-]+)(?<post>.*?)$"){ | |
rewrite ^(.*)$ $1?$pre$post?; | |
} | |
if ($query_string ~ "^(?<pre>.*?)(&?utm_medium=[a-zA-Z0-9_-]+)(?<post>.*?)$"){ | |
rewrite ^(.*)$ $1?$pre$post?; | |
} | |
if ($query_string ~ "^(?<pre>.*?)(&?utm_campaign=[a-zA-Z0-9_-]+)(?<post>.*?)$"){ |
This file contains 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
function lynt_save_oxygen( $meta_id, $object_id, $meta_key, $meta_value ) { | |
if ( 'ct_builder_shortcodes' !== $meta_key ) return; | |
$post = get_post( $object_id ); | |
if ( 'page' !== $post->post_type ) return; | |
$content = "<!-- wp:html -->\n" . do_shortcode( $meta_value ) . "\n<!-- /wp:html -->"; | |
$postarr = [ | |
'ID' => $post->ID, | |
'post_content' => $content | |
]; | |
wp_update_post( $postarr ); |
This file contains 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
if ( | |
isset( $_SERVER['HTTP_X_FORWARDED_PROTO']) && | |
strpos( $_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false) { | |
$_SERVER['HTTPS']='on'; | |
} |
This file contains 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
define( 'WP_DEBUG', true ); | |
define( 'WP_DISABLE_FATAL_ERROR_HANDLER', true ); |
This file contains 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_filter( 'wp_image_editors', 'lynt_wp_image_editors' ); | |
function lynt_wp_image_editors( $editors ) { | |
//return array( 'WP_Image_Editor_GD' ); //only GD | |
//return array( 'WP_Image_Editor_Imagick' ); //only Imagick | |
} |
This file contains 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
info.php | |
phpinfo.php | |
php_info.php | |
php-info.php | |
i.php | |
test.php | |
debug.php | |
admin.php | |
administrace.php | |
administration.php |