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
<IfModule mod_rewrite.c> | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^wp-content/uploads/(.*)$ http://www.example.com/wp-content/uploads/$1 [R=302,L,NC] | |
</IfModule> | |
# BEGIN WordPress | |
# ----- WP generated code |
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
<?php | |
function scripts_enqueues_admin() { | |
wp_enqueue_style('typography', '//typography.url/font-file.css', null); | |
} | |
add_action( 'login_enqueue_scripts', 'scripts_enqueues_admin' ); |
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
<?php | |
// Disable admin bar | |
function disable_admin_bar() { | |
if ( ! current_user_can('edit_posts') ) { | |
add_filter('show_admin_bar', '__return_false'); | |
} | |
} | |
add_action( 'after_setup_theme', 'disable_admin_bar' ); |
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
<?php | |
// allow more file types for uploads | |
function cc_mime_types($mimes) | |
{ | |
$mimes['zip'] = 'application/zip'; | |
$mimes['rar'] = 'application/x-rar-compressed'; | |
$mimes['tar'] = 'application/x-tar'; | |
$mimes['gz'] = 'application/x-gzip'; | |
$mimes['gzip'] = 'application/x-gzip'; | |
$mimes['tiff'] = 'image/tiff'; |
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
<?php | |
/** | |
* Adding fonts to Elementor typography options | |
*/ | |
function ching_add_fonts_elementor( $controls_registry ) { | |
// retrieve fonts list from Elementor | |
$fonts = $controls_registry->get_control( 'font' )->get_settings( 'options' ); | |
// add your new custom font | |
$new_fonts = array_merge( [ 'Your Custom Font Family Name' => 'system' ], $fonts ); |
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
<?php | |
// change "3" to your form ID | |
add_filter( 'gform_form_post_get_meta_3', 'add_my_field' ); | |
function add_my_field( $form ) { | |
$name = GF_Fields::create( array( | |
'type' => 'text', | |
'id' => 1005, | |
'formId' => $form['id'], |
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
AL : Alabama | |
AK : Alaska | |
AZ : Arizona | |
AR : Arkansas | |
CA : California | |
CO : Colorado | |
CT : Connecticut | |
DE : Delaware | |
DC : District of Columbia | |
FL : Florida |
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
/** | |
* How to link into the WordPress Customizer | |
*/ | |
Simple Link: | |
<a href="<?php echo esc_url( admin_url( 'customize.php' ) ); ?>">Link to Customizer</a> | |
Link to Panel: | |
$query['autofocus[panel]'] = 'nav_menus'; |
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
User-agent: * | |
Disallow: /wp-admin/ | |
Disallow: /wp-includes/ | |
Disallow: /wp-login.php | |
# make sure to update theme folder | |
Disallow: /wp-content/themes/theme-name | |
Allow: /wp-admin/admin-ajax.php | |
# to restraict the whole site | |
User-agent: * |
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
<?php | |
add_filter( 'ninja_forms_action_email_message', function( $message, $data, $action_settings ) { | |
return do_shortcode( $message ); | |
}, 20, 3); |
OlderNewer