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
| function new_projects_fields( $fields ) { | |
| $fields['location'] = array( | |
| 'name' => __( 'Location', 'projects' ), | |
| 'description' => __( 'Enter a location for this project.', 'projects' ), | |
| 'type' => 'text', | |
| 'default' => '', | |
| 'section' => 'info' | |
| ); | |
| return $fields; |
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
| function display_new_projects_fields() { | |
| global $post; | |
| $location = esc_attr( get_post_meta( $post->ID, '_location', true ) ); | |
| echo '<p>' . __( 'Location: ', 'projects' ) . $location . '</p>'; | |
| } | |
| add_action( 'projects_after_loop_item', 'display_new_projects_fields', 10 ); |
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
| add_action( 'woo_homepage', 'woo_display_wooslider', 1 ); |
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
| add_filter( 'woo_template_features_limit', 'jk_change_features_homepage' ); | |
| function jk_change_features_homepage( $features_limit ) { | |
| if ( is_home() ) { | |
| $features_limit = 4; // Display 4 features | |
| } | |
| return $features_limit; | |
| } |
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
| add_filter( 'woo_template_our_team_limit', 'jk_change_our_team_homepage' ); | |
| function jk_change_our_team_homepage( $team_limit ) { | |
| if ( is_home() ) { | |
| $team_limit = 8; // Display 8 team members | |
| } | |
| return $team_limit; | |
| } |
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
| add_filter( 'woo_header_gravatar', '__return_false' ); |
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
| add_filter( 'woo_header_gravatar_email', 'jk_change_intro_grav_email' ); | |
| function jk_change_intro_grav_email( $email ) { | |
| $email = email@email.com; | |
| return $email; | |
| } |
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
| add_filter( 'stitched_intro_message', 'jk_custom_intro_message' ); | |
| function jk_custom_intro_message( $intro ) { | |
| $intro = 'My custom introductory text'; | |
| return $intro; | |
| } |
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
| remove_action( 'woo_homepage', 'woo_display_introduction', 5 ); |
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
| add_filter( 'woo_business_slider', '__return_false' ); // Disable the slider | |
| add_filter( 'woo_business_features', '__return_false' ); // Disable Features display | |
| add_filter( 'woo_business_testimonials', '__return_false' ); // Disable Testimonials display | |
| add_filter( 'woo_business_blog', '__return_false' ); // Disable blog section |
OlderNewer