<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WordPress Plugins &#8211; Blackbams Blog</title>
	<atom:link href="https://blog.blackbam.at/tag/wordpress-plugins/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.blackbam.at</link>
	<description>development - digital arts - internet</description>
	<lastBuildDate>Thu, 04 Jul 2019 13:12:46 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.1</generator>
	<item>
		<title>New WordPress Plugin released: Simple User Locking</title>
		<link>https://blog.blackbam.at/2019/07/04/new-wordpress-plugin-released-simple-user-locking/</link>
					<comments>https://blog.blackbam.at/2019/07/04/new-wordpress-plugin-released-simple-user-locking/#respond</comments>
		
		<dc:creator><![CDATA[Blackbam]]></dc:creator>
		<pubDate>Thu, 04 Jul 2019 13:12:46 +0000</pubDate>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[management]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[user]]></category>
		<category><![CDATA[WordPress Plugins]]></category>
		<guid isPermaLink="false">https://blog.blackbam.at/?p=2382</guid>

					<description><![CDATA[A little bit of advertising for my new Plugin "Simple User Locking" which I have just released to the WordPress plugin repository. It has just passed the security audit by the WordPress plugin team and is not publicly available and free for everybody.]]></description>
										<content:encoded><![CDATA[<p>A little bit of advertising for my new Plugin &#8220;Simple User Locking&#8221; which I have just released to the WordPress plugin repository. It has just passed the security audit by the WordPress plugin team and is not publicly available and free for everybody: <a href="https://wordpress.org/plugins/simple-user-locking/">https://wordpress.org/plugins/simple-user-locking/</a></p>
<p>This is its description:</p>
<p>Prevent users from logging into your WordPress installation for a certain timeframe or permanently. Works also great with the multisite user management area. The locked users are easily manageable within the users overview page. The settings are within the user edit pages. No user can lock himself. No user with a lower role can lock a higher user and administrators in a network can not lock super administrators. If a user is locked, he is instantly logged out of any session until the lock expires or is removed.</p>
<p>No useless overhead, no ads. Just a tiny, but very effective plugin to keep your website secure.</p>
<ul>
<li>you do not want to delete a user, but you want to make sure he can not access the site (at least for a certain timeframe)</li>
<li>an employee leaves your company and access should be removed, but you want to keep his user as an author in the system</li>
<li>you want to punish a certain user which did bad things for a certain timeframe</li>
<li>you want only few persons to have access to your WordPress site in order to minimize risk of incidents</li>
<li> &#8230; or maybe some other use case</li>
</ul>
<p>Would be great to hear whatever feedback or improvement ideas 😉 </p>
<p><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fblog.blackbam.at%2F2019%2F07%2F04%2Fnew-wordpress-plugin-released-simple-user-locking%2F&#038;title=New%20WordPress%20Plugin%20released%3A%20Simple%20User%20Locking" data-a2a-url="https://blog.blackbam.at/2019/07/04/new-wordpress-plugin-released-simple-user-locking/" data-a2a-title="New WordPress Plugin released: Simple User Locking"><img src="https://static.addtoany.com/buttons/share_save_120_16.png" alt="Share"></a></p>]]></content:encoded>
					
					<wfw:commentRss>https://blog.blackbam.at/2019/07/04/new-wordpress-plugin-released-simple-user-locking/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Disabling (specific) WordPress update notifications in Backend for Core, Themes and Plugins</title>
		<link>https://blog.blackbam.at/2012/07/12/disabling-specific-wordpress-update-notifications-in-backend-for-core-themes-and-plugins/</link>
					<comments>https://blog.blackbam.at/2012/07/12/disabling-specific-wordpress-update-notifications-in-backend-for-core-themes-and-plugins/#comments</comments>
		
		<dc:creator><![CDATA[Blackbam]]></dc:creator>
		<pubDate>Thu, 12 Jul 2012 16:28:00 +0000</pubDate>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WP Scripts]]></category>
		<category><![CDATA[Update notifications]]></category>
		<category><![CDATA[WordPress Plugins]]></category>
		<guid isPermaLink="false">https://blog.blackbam.at/?p=1961</guid>

					<description><![CDATA[The automatic upgrade function of WordPress is usefull for most bloggers, as they always are reminded to keep WordPress and its extensions up to date. Anyhow, it can be very annoying for developers when customers and end-user make updates by their own, usually destroying something. It is often recomendable to disable this notifications: Sometimes a [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>The automatic upgrade function of WordPress is usefull for most bloggers, as they always are reminded to keep WordPress and its extensions up to date. Anyhow, it can be very annoying for developers when customers and end-user make updates by their own, usually destroying something.</p>
<p>It is often recomendable to disable this notifications: Sometimes a Plugin or Theme must be extended or changed by the developer &#8211; automatic upgrades would destroy these changes. Some Plugins like Mailpress do not disable the automatic upgrade, though automatic upgrading usually leeds to huge data losses  🙁 Recently I had to learn this the hard way, but this is no excuse for incomplete backups, of course.</p>
<p>However the following functions can help:</p>
<h2>1. Disable Plugin upgrades</h2>
<p>You can disable special Plugins by pasting the following code into the Plugin itself:</p>
<pre lang="php">
add_filter('site_transient_update_plugins', 'cis_remove_plugin_update');
 
function cis_remove_plugin_update($value) {
	unset($value-\>response[ plugin_basename(__FILE__) ]);
	return $value;
}
</pre>
<p>You can alternativley paste some code into your functions.php-file of your Theme:</p>
<pre lang="php">
add_filter('site_transient_update_plugins', 'cis_remove_plugin_update');
 
function cis_remove_plugin_update($value) {
	$plugin_relative_path = "plugin_relative_path"; // this could be "akismet/akismet.php" for example
	unset($value->response[ $plugin_relative_path]);
	return $value;
}

</pre>
<p>You also can disable all Plugin upgrades, for example if you want to prevent customers from doing that:</p>
<pre lang="php">
remove_action ('load-update-core.php', 'wp_update_plugins');
add_filter ('pre_site_transient_update_plugins',create_function ('$a', "return null;"));
</pre>
<h2>2. Disabling Theme Upgrades</h2>
<p>Disable all Theme updgrades:</p>
<pre lang="php">
remove_action ('load-update-core.php', 'wp_update_themes');
add_filter ('pre_site_transient_update_themes',create_function ('$a', "return null;"));
</pre>
<h2>3. Disable Core Updgrade</h2>
<p>Note: You never should disable the Core-Upgrade of WordPress, as important security upgrades will be missed. However, if you need to do it for some reason:</p>
<pre lang="php">
add_filter ('pre_site_transient_update_core',create_function ('$a', "return null;"));
</pre>
<p><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fblog.blackbam.at%2F2012%2F07%2F12%2Fdisabling-specific-wordpress-update-notifications-in-backend-for-core-themes-and-plugins%2F&#038;title=Disabling%20%28specific%29%20WordPress%20update%20notifications%20in%20Backend%20for%20Core%2C%20Themes%20and%20Plugins" data-a2a-url="https://blog.blackbam.at/2012/07/12/disabling-specific-wordpress-update-notifications-in-backend-for-core-themes-and-plugins/" data-a2a-title="Disabling (specific) WordPress update notifications in Backend for Core, Themes and Plugins"><img src="https://static.addtoany.com/buttons/share_save_120_16.png" alt="Share"></a></p>]]></content:encoded>
					
					<wfw:commentRss>https://blog.blackbam.at/2012/07/12/disabling-specific-wordpress-update-notifications-in-backend-for-core-themes-and-plugins/feed/</wfw:commentRss>
			<slash:comments>6</slash:comments>
		
		
			</item>
		<item>
		<title>Digging into roles and capabilities in WordPress &#8211; extension and global usage</title>
		<link>https://blog.blackbam.at/2011/07/02/digging-into-roles-and-capabilities-in-wordpress-extension-and-global-usage/</link>
					<comments>https://blog.blackbam.at/2011/07/02/digging-into-roles-and-capabilities-in-wordpress-extension-and-global-usage/#respond</comments>
		
		<dc:creator><![CDATA[Blackbam]]></dc:creator>
		<pubDate>Sat, 02 Jul 2011 15:12:52 +0000</pubDate>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WP Scripts]]></category>
		<category><![CDATA[capabilites]]></category>
		<category><![CDATA[explanation]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[roles]]></category>
		<category><![CDATA[WordPress Plugins]]></category>
		<guid isPermaLink="false">https://blog.blackbam.at/?p=1409</guid>

					<description><![CDATA[You may have noticed that understanding and extending roles and capabilities in WordPress can be a bit confusing as a start. On the one hand there are the default roles: (Super Admin), Administrator, Editor, Author, Contributor, Subscriber, and they all have more or less rights (=capabilities) to do actions on a WordPress website, with descending [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>You may have noticed that understanding and extending <a href="http://codex.wordpress.org/Roles_and_Capabilities">roles and capabilities in WordPress</a> can be a bit confusing as a start. On the one hand there are the default roles: (Super Admin), Administrator, Editor, Author, Contributor, Subscriber, and they all have more or less rights (=capabilities) to do actions on a WordPress website, with descending rights as they are ordered here. </p>
<p>&nbsp;</p>
<p>These roles do not exist since the early days of WordPress. They are mapped onto the traditional WordPress role system, which is a user level system from 0-10, while 10 is the highest level (all rights) and 0 is the lowest level (fewest rights). This interrelationship is shown on the following table from the Codex:</p>
<p>&nbsp;</p>
<p><a href="https://blog.blackbam.at/wp-content/uploads/2011/07/wp_role_capability_level-600x327.jpg"><img fetchpriority="high" decoding="async" src="https://blog.blackbam.at/wp-content/uploads/2011/07/wp_role_capability_level-600x327.jpg" alt="" title="WP roles and capabilities interrelationship" width="600" height="327" class="alignnone size-medium wp-image-1515" srcset="https://blog.blackbam.at/wp-content/uploads/2011/07/wp_role_capability_level-600x327.jpg 600w, https://blog.blackbam.at/wp-content/uploads/2011/07/wp_role_capability_level.jpg 772w" sizes="(max-width: 600px) 100vw, 600px" /></a></p>
<p>&nbsp;</p>
<p>Each of the user levels has a certain amount of capabilities. These capabilities exactly define what a WordPress user is allowed to do on the website. The capability &#8220;edit_posts&#8221;, for example, allows a user to edit his own published posts, the capability &#8220;add_users&#8221; allows a user to add new users to the system, and so on.</p>
<p>&nbsp;</p>
<h2>Important things to know about roles and capabilities</h2>
<p>The default system may be enough for blog systems, but not when it comes to WordPress as a CMS. The following things are important to know:</p>
<p><p>&nbsp;</p>
<ul>
<li>It is possible to create custom roles and custom capabilities (as they are registered default with <a href="http://codex.wordpress.org/Post_Types", f.e. "edit_job")>custom post types</a>)</li>
<li>One user can have more than one of the default roles, a user could be an &#8220;administrator&#8221;, &#8220;editor&#8221; and something like a custom &#8220;job_publisher&#8221; at the same time, for example. These roles are stored in the user-meta table for every user, in the field Table Prefix + capabilities.</li>
<li>You can make a semantic rule, that users on your website only are allowed to have one role at the same time, if you want to have a simplified role handling</li>
</ul>
<h2>How to extend the default role system then?</h2>
<p>You can search for functions and information how to do that in the Function Reference or using Google. I recommend the great and well-known <a href="http://wordpress.org/extend/plugins/members/">Members Plugin by Justin Tadlock</a>, which will make managing these things quite easy using the WordPress backend. Just check it out. It is described as follows:</p>
<p>&nbsp;</p>
<p><em></p>
<p>&#8220;Members is a plugin that extends your control over your blog. It&#8217;s a user, role, and content management plugin that was created to make WordPress a more powerful CMS.</p>
<p>&nbsp;</p>
<p>The foundation of the plugin is its extensive role and capability management system. This is the backbone of all the current features and planned future features.&#8221;</p>
<p></em></p>
<p>&nbsp;</p>
<h2>How can we easily get roles and work with roles in Plugins and Themes now?</h2>
<p>The following functions proved to be really useful, as they work almost anywhere you call them inside WordPress.</p>
<p>&nbsp;</p>
<div class="code_title">Returns the current users&#8217; roles on every page inside WordPress as an array</div>
<pre lang="php">
function getUserRolesAdminEdit() {
	
	$current_user = wp_get_current_user();
	
	$currentuserid = $current_user->ID;
	
	if(isset($_REQUEST['user_id']) && $_REQUEST['user_id']!="") {
		$currentuserid = $_REQUEST['user_id'];
	}
	
	$userroles = array('subscriber');
	
	$user = new WP_User( $currentuserid );
	
	if ( !empty( $user->roles ) && is_array( $user->roles ) ) {
		$userroles=$user->roles;
	}
	
	return $userroles;
}
</pre>
<p>&nbsp;</p>
<div class="code_title">&#8230;or the current users&#8217; role as a string, if you are sure there is only one per user</div>
<pre lang="php">
function getUserRoleAdminEdit() {
	
	$current_user = wp_get_current_user();
	
	$currentuserid = $current_user->ID;
	
	if(isset($_REQUEST['user_id']) && $_REQUEST['user_id']!="") {
		$currentuserid = $_REQUEST['user_id'];
	}
	
	$userrole = 'subscriber';
	
	$user = new WP_User( $currentuserid );
	
	if ( !empty( $user->roles ) && is_array( $user->roles ) ) {
		// only change this if one user can have more than one role, which is not expected
		$userrole=$user->roles[0];
	}
	
	return $userrole;
}
</pre>
<p>&nbsp;</p>
<div class="code_title">The following function always returns the correct user ID, which can be useful especially for admin pages</div>
<pre lang="php">
function getUserIdAdminEdit() {
	
	$current_user = wp_get_current_user();
	
	$currentuserid = $current_user->ID;
	
	if(isset($_REQUEST['user_id']) && $_REQUEST['user_id']!="") {
		$currentuserid = $_REQUEST['user_id'];
	}
	
	return $currentuserid;
}
</pre>
<p><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fblog.blackbam.at%2F2011%2F07%2F02%2Fdigging-into-roles-and-capabilities-in-wordpress-extension-and-global-usage%2F&#038;title=Digging%20into%20roles%20and%20capabilities%20in%20WordPress%20%E2%80%93%20extension%20and%20global%20usage" data-a2a-url="https://blog.blackbam.at/2011/07/02/digging-into-roles-and-capabilities-in-wordpress-extension-and-global-usage/" data-a2a-title="Digging into roles and capabilities in WordPress – extension and global usage"><img src="https://static.addtoany.com/buttons/share_save_120_16.png" alt="Share"></a></p>]]></content:encoded>
					
					<wfw:commentRss>https://blog.blackbam.at/2011/07/02/digging-into-roles-and-capabilities-in-wordpress-extension-and-global-usage/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>(Deutsch) Videos in WordPress einbetten &#8211; die besten Plugins (auch für mobile phones)</title>
		<link>https://blog.blackbam.at/2010/06/03/videos-in-wordpress-einbetten-die-besten-plugins-auch-fur-mobile-phones/</link>
					<comments>https://blog.blackbam.at/2010/06/03/videos-in-wordpress-einbetten-die-besten-plugins-auch-fur-mobile-phones/#respond</comments>
		
		<dc:creator><![CDATA[Blackbam]]></dc:creator>
		<pubDate>Thu, 03 Jun 2010 15:19:35 +0000</pubDate>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[einbetten]]></category>
		<category><![CDATA[embed]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[videos]]></category>
		<category><![CDATA[WordPress Plugins]]></category>
		<guid isPermaLink="false">http://www.blackbam.at/blog/?p=664</guid>

					<description><![CDATA[Sorry, this entry is only available in Deutsch.]]></description>
										<content:encoded><![CDATA[<p class="qtranxs-available-languages-message qtranxs-available-languages-message-en">Sorry, this entry is only available in <a href="https://blog.blackbam.at/de/tag/wordpress-plugins/feed/" class="qtranxs-available-language-link qtranxs-available-language-link-de" title="Deutsch">Deutsch</a>.</p>
<p><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fblog.blackbam.at%2F2010%2F06%2F03%2Fvideos-in-wordpress-einbetten-die-besten-plugins-auch-fur-mobile-phones%2F&#038;title=%28Deutsch%29%20Videos%20in%20WordPress%20einbetten%20%E2%80%93%20die%20besten%20Plugins%20%28auch%20f%C3%BCr%20mobile%20phones%29" data-a2a-url="https://blog.blackbam.at/2010/06/03/videos-in-wordpress-einbetten-die-besten-plugins-auch-fur-mobile-phones/" data-a2a-title="(Deutsch) Videos in WordPress einbetten – die besten Plugins (auch für mobile phones)"><img src="https://static.addtoany.com/buttons/share_save_120_16.png" alt="Share"></a></p>]]></content:encoded>
					
					<wfw:commentRss>https://blog.blackbam.at/2010/06/03/videos-in-wordpress-einbetten-die-besten-plugins-auch-fur-mobile-phones/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
