Skip to content

Instantly share code, notes, and snippets.

View eduard-un's full-sized avatar
🎯
Focusing

Eduard Ungureanu eduard-un

🎯
Focusing
View GitHub Profile
<?php
//Don't include <?php if your functions.php file alread has it.
add_filter('site_url', 'wplogin_filter', 10, 3);
function wplogin_filter( $url, $path, $orig_scheme ) {
$old = array( "/(wp-login.php)/");
$new = array( "login");
return preg_replace( $old, $new, $url, 1);
}
RewriteBase /
RewriteRule ^login$ wp-login.php
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
@eduard-un
eduard-un / Code8.php
Last active April 19, 2016 20:05
Code8.php
<?php
$args = array(
'search-form',
'comment-form',
'comment-list',
'gallery',
'caption',
'widgets'
);
add_theme_support( 'html5', $args );
<figure>
<img src="img src" alt="alt attribute">
<figcaption>image caption</figcaption>
</figure>
foo
bar
baz
qux
quux
foo
bar
baz
qux
quux
<link href="/apple-touch-icon-57x57.png" rel="apple-touch-icon" sizes="57x57" />
<link href="/apple-touch-icon-114x114.png" rel="apple-touch-icon" sizes="114x114" />
<link href="/apple-touch-icon-72x72.png" rel="apple-touch-icon" sizes="72x72" />
<link href="/apple-touch-icon-144x144.png" rel="apple-touch-icon" sizes="144x144" />
<link href="/apple-touch-icon-60x60.png" rel="apple-touch-icon" sizes="60x60" />
<link href="/apple-touch-icon-120x120.png" rel="apple-touch-icon" sizes="120x120" />
<link href="/apple-touch-icon-76x76.png" rel="apple-touch-icon" sizes="76x76" />
<link href="/apple-touch-icon-152x152.png" rel="apple-touch-icon" sizes="152x152" />
<link href="/favicon-196x196.png" rel="icon" type="image/png" sizes="196x196" />
<link href="/favicon-160x160.png" rel="icon" type="image/png" sizes="160x160" />
wp_mail( apply_filters( 'et_contact_page_email_to', $et_email_to ),
sprintf( __( 'Customization request for %1$s', 'Divi' ),
sanitize_text_field( $post_name )), stripslashes( wp_strip_all_tags( $POST['et_pb_contact_message'] ) ), apply_filters( 'et_contact_page_headers', $headers, $contact_name, $contact_email ) );
wp_mail( apply_filters( 'et_contact_page_email_to', $et_email_to ),
sprintf( __( 'Customization Request for %1$s%2$s', 'Divi' ),
sanitize_text_field( $et_site_name ),
( '' !== $title ? sprintf( _x( ' - %s', 'contact form title separator', 'Divi' ), sanitize_text_field( $title ) ) : '' )
), stripslashes( wp_strip_all_tags( $POST['et_pb_contact_message'] ) ), apply_filters( 'et_contact_page_headers', $headers, $contact_name, $contact_email ) );