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 count_users_by_role( $user_role ) { | |
| // Standard User Roles: all, administrator, editor, author, contributor, subscriber | |
| $result = count_users(); | |
| $totalUsers = $result['total_users']; | |
| if( 'all' == $user_roll || '' == $user_roll ) : | |
| return $totalUsers; | |
| else : |
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( 'front_page_template', 'my_front_page_template' ); | |
| function my_front_page_template( $template ) { | |
| return is_home() ? '' : $template; | |
| } |
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 | |
| $site_layout = genesis_site_layout(); | |
| if ( 'content' == $site_layout ) { | |
| $content_width = 1060; | |
| }else if ( 'content-sidebar' == $site_layout || 'sidebar-content' == $site_layout ) | |
| $content_width = 760; | |
| }else if ( 'content-sidebar-sidebar' == $site_layout || 'sidebar-sidebar-content' == $site_layout ) | |
| $content_width = 560; | |
| }else if ( 'content-sidebar-sidebar' == $site_layout || 'sidebar-sidebar-content' == $site_layout ) | |
| $content_width = 460; |
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 //count number of words in a post | |