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
/** Change Number of Default Post Revisions **/ | |
define( 'WP_POST_REVISIONS', 3 ); |
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
/** Disable Theme and Plugin Editor **/ | |
define( 'DISALLOW_FILE_EDIT', 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
/** Login Screen **/ | |
function eline_login_logo() { ?> | |
<style type="text/css"> | |
.login h1 a { | |
background-image: url(http://www.elinestudio.com/wp-content/uploads/2015/05/eline-logo-login.png); | |
padding-bottom: 0px; | |
} | |
</style> | |
<?php } | |
add_action( 'login_enqueue_scripts', 'eline_login_logo' ); |
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
/** Dashboard Support Widget **/ | |
function eline_dashboard_widget() { | |
echo "<p style='color:red; font-size:200%; font-weight:bold'>Have any questions or need help?</p> | |
<p style='color:blue; font-size:200%'>Send us an email by clicking <a style='color:blue; text-decoration:underline; font-weight:bold' title='Send an email to eLine Studio' href='mailto:orlando@elinestudio.com?Subject=Support%20Message' target='_top'>HERE</a>.</p> | |
<p style='color:black; font-size:200%; font-weight:bold'><strong>Thank you for choosing eLine Studio!</strong></p>"; | |
} | |
function add_eline_dashboard_widget() { | |
wp_add_dashboard_widget('eline_dashboard_widget', 'Website Support', 'eline_dashboard_widget'); | |
} | |
add_action('wp_dashboard_setup', 'add_eline_dashboard_widget'); |
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
/** Change ‘Add to Cart’ Text on Product Pages **/ | |
add_filter( 'add_to_cart_text', 'woo_custom_cart_button_text' ); // < 2.1 | |
add_filter( 'woocommerce_product_single_add_to_cart_text', 'woo_custom_cart_button_text' ); // 2.1 + | |
add_filter( 'woocommerce_product_add_to_cart_text', 'woo_custom_cart_button_text' ); // 2.1 + | |
function woo_custom_cart_button_text() { | |
return __( 'Buy Now!', 'woocommerce' ); | |
} |
OlderNewer