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
// Hides Yoast SEO Plugin Field Columns for Author users and below | |
// @since Jan, 2013 | |
// @author R. Dall | |
function my_columns_filter( $columns ) { | |
if( ! current_user_can( 'edit_users' ) ) | |
unset( $columns['wpseo-score'], $columns['wpseo-title'], $columns['wpseo-metadesc'], $columns['wpseo-focuskw'] ); | |
return $columns; |
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
//get the review type based on page custom meta field | |
function oswc_get_review_meta($postid) { | |
//try every reasonble conceivable variation that the user my enter to make this as user friendly as possible | |
$postTypeName = get_post_meta($postid, "Review Type", $single = true); | |
if(empty($postTypeName)){ | |
$postTypeName = get_post_meta($postid, "review type", $single = true); | |
if(empty($postTypeName)){ | |
$postTypeName = get_post_meta($postid, "reviewtype", $single = true); | |
if(empty($postTypeName)){ | |
$postTypeName = get_post_meta($postid, "Reviewtype", $single = 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
sudo apt-get install php5 php5-fpm php-pear php5-common php5-mcrypt php5-mysql php5-cli php5-gd php-apc |