How to change menu labels

In order to change the menu labels you will have to go to add this code into your functions.php: add_filter( ‘gettext’, ‘change_woocommerce_text’ ); function change_woocommerce_text( $translated ) { $translated = str_replace( ‘WooCommerce’, ‘Store’, $translated ); return $translated; } Tested.

fetch images and videos

The problem with this is that each sites content is formated differently. If there was only one site you were wanting to pull from you maybe able to use curl() and then sort though the content. A better idea may be to grab content from the sites RSS feed and sort though and grab what … Read more

Removing specific menu items?

A much simpler solution is to use remove_menu_page , remove_submenu_page and remove_menu (admin bar). Your example of removing the sub-menu item for “add new” would be remove_submenu_page( ‘edit.php?post_type=page’, ‘post-new.php?post_type=page’ ); To remove it from the admin menu bar you can use the example in @BandonRandon’s post.

Wp admin – Set default value to 999 in comments

You can use add_filter(‘edit_comments_per_page’, ‘return_999’); function return_999(){ return 999; } since the user options are filtered in the WP_List_Table::get_items_per_page() class method : /** * Get number of items to display on a single page * * @since 3.1.0 * @access protected * * @return int */ function get_items_per_page( $option, $default = 20 ) { $per_page … Read more

Change CSS for logged in users

You need to use the body_class(): http://codex.wordpress.org/Function_Reference/body_class If you use the function body_class() you can set on your css like this: .example { display: none; } .logged-in .example { display: block }

How to set Noindex to all wordpress pages in a catergory?

As the previous code I posted didnt work for the OP, clutching at straws, we can try to obtain the same outcome using get_the_category As the OP stated he was using YOAST, i’ll wrap this function into the YOAST hook for robots. add_filter(‘wpseo_robots’, ‘yoast_no_home_noindex’, 999); function yoast_no_home_noindex($string= “”) { $term_id = get_the_category( $post->ID ); if($term_id[0]->term_id … Read more

What does this code do? (Injected code hacked)

It gets code from a remote location (http://www.linos.cc/code.php) and stores it within a temporary file using sys_get_temp_dir() – http://php.net/manual/en/function.sys-get-temp-dir.php – and then creates a wp-tmp.php file with the before-mentioned code within your WordPress installation in the following locations: /wp-includes/wp-tmp.php and /wp-content/themes/your-theme-name/wp-tmp.php The code that’s stored in this file (http://www.linos.cc/code.php) appears to append content to your … Read more