1. Download Smart YouTube PRO to your plugins folder.
2. Unpack and activate the plugin.
3. Tune settings if needed.
4. Now just insert a link to a post and change the url prefix to:
httpv
That will do the trick. Now you are ready to share.
1. Download Smart YouTube PRO to your plugins folder.
2. Unpack and activate the plugin.
3. Tune settings if needed.
4. Now just insert a link to a post and change the url prefix to:
httpv
That will do the trick. Now you are ready to share.
If for some reasons you need to get current WordPress theme, here is a simple way to get it:
<?php require(dirname(__FILE__) . '/wp-load.php'); $theme_name = get_current_theme(); echo $theme_name; ?>
Ref.
Brute-force attacks are one the most common ones against WordPress sites. One of the possible solution is to use Login Security Solution plugin. It tracks attempts to login and ban IPs if there are too many of them during certain period of time. The plugin stores all information about the attempts in wp_login_security_solution_fail table. Here is how you can get summary on IP addresses which are attacking your site:
select ip, count(ip) as attempts from wp_login_security_solution_fail group by ip order by attempts desc;
Now you can block the most active of them in the firewall.
By default Worpdress places readme.hml file to your webroot directory, so it’s possible to get it. The problem is this file contains your WordPress version. So if for some reason you have vulnerable version of WordPress you might want to hide this file. This is how you can implement this:
location = /readme.html { return 404; }
Keep in mind that it will not remove your WordPress version from your feeds and HTML headers.
There are a lot of WordPress based websites (as well as not WordPress) databases on your box. It’s necessary to get number of registered users in WordPress databases only.
Collecting WordPress databases:
mysql -Bse " use information_schema; select TABLE_SCHEMA from TABLES where table_name like 'wp_users';" > wp_users.txt
Getting the numbers:
for i in $(cat wp_users.txt ) ; do echo -n $i " "; mysql -Bse "use $i ; select count(id) from wp_users " ; echo ; done | sort -rnk2 | less
To enable “Screen Options” for all user one might need to install Adminimize plugin which significantly extends permissions management for the users in WordPress.
If you need to change you ‘Home’ link text in your WordPress installation just put these lines to your theme’s function.php:
function change_home($menu_text) { return preg_replace('/>Home</', '>Blog<', $menu_text, 1); } add_filter('wp_page_menu','change_home');
Change ‘Blog’ to whatever you need. The solution was found here.