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 if ( 'false' === get_option( 'si_plaid_ach_only' ) ) : ?> | |
<div class="row description"> | |
<p><?php esc_html_e( 'Please select from the payment types below. Saving your payment information is secure and makes things easier for the future', 'sprout-invoices' ); ?></p> | |
| |
</div> | |
<div class="sa-control-group "> | |
<span class="label_wrap"> | |
<label for="sa_credit_payment_method"><?php esc_html_e( 'Payment Method', 'sprout-invoices' ); ?></label> <span class="required">*</span> | |
</span> | |
<span class="input_wrap"> |
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
#wpadminbar ul#wp-admin-bar-root-default>li { | |
margin-right: 0; | |
display: none; | |
} |
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 | |
$args = array( 'post_type' => 'movies', 'posts_per_page' => 10 ); | |
$the_query = new WP_Query( $args ); | |
?> | |
<?php if ( $the_query->have_posts() ) : ?> | |
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?> | |
<h2><?php the_title(); ?></h2> | |
<div class="entry-content"> | |
<?php the_content(); ?> | |
</div> |
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 | |
/* | |
* Creating a function to create our CPT | |
*/ | |
function custom_post_type() { | |
// Set UI labels for Custom Post Type | |
$labels = array( | |
'name' => _x( 'Artist', 'Post Type General Name', 'nfinite' ), |
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 | |
//========================================================= | |
// Add Custom functions file to WordPress | |
//========================================================= | |
$roots_includes = array( | |
'/theme-functions/theme-colors.php' | |
); |
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 | |
add_action( 'show_user_profile', 'my_show_extra_profile_fields' ); | |
add_action( 'personal_options_update', 'my_save_extra_profile_fields' ); | |
function my_show_extra_profile_fields( $user ) { ?> | |
<h3>Employee Information</h3> |
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 | |
add_action('wp_dashboard_setup', 'my_custom_dashboard_widgets'); | |
function my_custom_dashboard_widgets() { | |
global $wp_meta_boxes; | |
wp_add_dashboard_widget('custom_help_widget', 'Theme Support', 'custom_dashboard_help'); | |
} | |
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 | |
/* Remove Tools admin menu item for everyone other than Administrator */ | |
add_action( 'admin_init', 'remove_menu_pages_for_all_except_admin' ); | |
function remove_menu_pages_for_all_except_admin() { | |
global $user_ID; | |
if ( !current_user_can('administrator') ) { | |
remove_menu_page('tools.php', 'tools.php'); |
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 | |
// Filter hook | |
add_filter('the_content',array('sby2_fix_wordpress','fix_spelling')); | |
class sby2_fix_wordpress | |
{ | |
function fix_spelling($content) | |
{ |
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
// top message | |
add_action('all_admin_notices','top_message'); | |
function top_message() | |
{ | |
if(strpos($_SERVER['REQUEST_URI'],'post-new')>0 || strpos($_SERVER['REQUEST_URI'],'post.php')>0) | |
{ | |
echo (" | |
<div style=' background:#d3d3d3; width:95%; font-weight:bold; border:2px solid #AAA; |