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
add_filter( 'mainwp_sitestable_display_row_columns', 'mycustom_mainwp_sitestable_display_row_columns', 10, 3 ); | |
function mycustom_mainwp_sitestable_display_row_columns( $false_val , $column, $website ){ | |
if( 'notes' === $column && ! empty( $website['note'] ) ){ | |
$note = wp_strip_all_tags( html_entity_decode( $website['note'] ) ); | |
return substr( $note, 0, 50 ); | |
} | |
return false; | |
} |
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
$result = count_users(); | |
echo 'There are ', $result['total_users'], ' total users'; | |
foreach( $result['avail_roles'] as $role => $count ) { | |
echo ', ', $count, ' are ', $role, 's'; | |
} | |
echo '.'; |
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
add_action('wp_head','my_analytics', 20); | |
function my_analytics() { | |
?> | |
<!-- Global site tag (gtag.js) - Google Analytics --> | |
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-26113989-28"></script> | |
<script> | |
window.dataLayer = window.dataLayer || []; | |
function gtag(){dataLayer.push(arguments);} | |
gtag('js', new Date()); | |
gtag('config', '26113989-28'); |