Nastavení automatické aktualizace

WordPress 3.7 introduced automatic upgrades. Maintenance and security updates are applied in the background when a patch becomes available and someone visits your site. By default, the process only applies when updating minor versions — such as 3.7.0 to 3.7.1 — and takes no longer than 25 seconds.

Automated updates are especially risky if you:

– use a large number of dubious plug-ins or complex third-party themes
– want to control and manage updates yourself, or
– have an especially nervous disposition!

How to enable major release updates


define('WP_AUTO_UPDATE_CORE', true);

To stop the autoupdates of the WordPress core


define( 'WP_AUTO_UPDATE_CORE', false );

How to enable plugins updates


add_filter( 'auto_update_plugin', '__return_true' );

How to enable themes updates


add_filter( 'auto_update_theme', '__return_true' );

Then enable the plugins updates


add_filter( 'auto_update_plugin', '__return_true' );

How to completely disable the WordPress auto updates


define( 'AUTOMATIC_UPDATER_DISABLED', true );

WordPress Auto Updates How To »

How to Configure Automatic Updates in WordPress »

How to exclude plugins from getting automatically updated »

Pluginy pro pop-up okna

ITRO Popup Plugin
http://wordpress.org/plugins/itro-popup/
http://www.itro.eu/index.php/portfolio/itro-popup-plugin/

Display a popup to your WP site. Age validation for adult-content site. Fully customizable with WP Post Editor. Very easy to use.

Icegram
http://wordpress.org/plugins/icegram/

Popups, header / footer bars, notifications, messengers, Powerful targeting rules, All-in-one, fully integrated WordPress plugin. Compatible with auto responders, other plugins and themes.

YITH Newsletter Popup
https://wordpress.org/plugins/yith-newsletter-popup/

A simple to configure plugin that is really useful for your website. It shows a clean design popup where you can insert images, messages and a newsletter form. Demo »

35+ Best WordPress Popup Plugins »

The Best WordPress Popup Optin Plugins »

Jak skrýt vybrané stránky či příspěvky v administraci uživatelům


function jp_exclude_pages_from_admin($query) {
 
    if ( ! is_admin() )
        return $query;
 
    global $pagenow, $post_type; 
 
    if ( !current_user_can( 'administrator' ) && is_admin() && $pagenow == 'edit.php' && $post_type == 'page' ) { 
        $query->query_vars['post__not_in'] = array( '10', '167', '205' ); // ID stránek, které se mají skrýt "neadminům"
    }
}

add_filter( 'parse_query', 'jp_exclude_pages_from_admin' );

Zdroj »

Nastavení defaultní hodnoty pro tagy a uživatelské taxonomie

Příspěvek se automaticky zařadí do výchozí rubriky, i když ji nepřiřadíme. To ale neplatí pro štítky (tagy) a uživatelské taxonomie.
Jak to nastavit v tomto případě:


function mfields_set_default_object_terms( $post_id, $post ) {
    if ( 'publish' === $post->post_status ) {
        $defaults = array(
            'post_tag' => array( 'štítek 1', 'štítek 2' ),
            'moje taxonomue' => array( 'Defaultní hodnota' ),
            );
        $taxonomies = get_object_taxonomies( $post->post_type );
        foreach ( (array) $taxonomies as $taxonomy ) {
            $terms = wp_get_post_terms( $post_id, $taxonomy );
            if ( empty( $terms ) && array_key_exists( $taxonomy, $defaults ) ) {
                wp_set_object_terms( $post_id, $defaults[$taxonomy], $taxonomy );
            }
        }
    }
}
add_action( 'save_post', 'mfields_set_default_object_terms', 100, 2 );

http://wordpress.mfields.org/2010/set-default-terms-for-your-custom-taxonomies-in-wordpress-3-0/

Rychlá nebo hromadná editace uživatelských polí

Saving custom fields in quick or bulk edit mode in WordPress
http://wpdreamer.com/2012/03/manage-wordpress-posts-using-bulk-edit-and-quick-edit/

One of the most cool features when managing WordPress posts, is the ability to batch edit multiple posts at once or quickly edit one post to perform a simple task such as adding a tag. Learn how to extend WordPress’ Quick Edit and Bulk Edit to retrieve and save the value of your custom fields.

Plugin Custom Bulk/Quick Edit
http://wordpress.org/plugins/custom-bulkquick-edit/
https://github.com/michael-cannon/custom-bulkquick-edit
How do I add custom fields to my bulk/quick edit page »
How do you configure options »

Pozor, do functions.php *může* být nutné přidat:


add_filter( 'manage_post_posts_columns', 'my_manage_post_posts_columns' );
function my_manage_post_posts_columns( $columns ) {
	$columns['custom_field_name'] = esc_html__( 'Nazev sloupce v administraci' ); // pozor, název sloupce musí být bez diakritiky
	return $columns;
}

a teprve po přidání tohoto kódu je třeba zpřístupnit pole v nastavení pluginu.

Maskování odkazů

Link Cloaking
http://w-shadow.com/blog/2007/07/28/link-cloaking-plugin-for-wordpress/

This is a plugin for WordPress that can automatically or selectively cloak outgoing links in your posts and/or pages.

– Choose what to cloak – all links, only the links you specify or no links at all.
– Choose where to cloak – posts, pages or both.
– Exception list – links pointing to domains in this list will not be cloaked. For example, this is useful if you have chosen to cloak all links but don’t want to cloak the links to your own domains.

`Cloak Me`

Once you install the plugin, it will automatically, without requiring any configuration, turn it into a cloaked link when it’s displayed to a visitor:

`Cloak Me`

As an alternative to the fully automatic cloaking, you can switch the plugin to “selective cloaking” and tag the links you want to cloak manually:

`Cloak Me`

*Alternativy*

WP Wizard Cloak
https://wordpress.org/plugins/wp-wizard-cloak/

Cloaks, tracks, and shortens your links. Turn long URLs into your-domain.com/link.

Fakturace

WP-Invoice – Web Invoice and Billing
http://wordpress.org/plugins/wp-invoice/

WP-Invoice lets WordPress blog owners send itemized invoices to their clients. Ideal for web developers, SEO consultants, general contractors, or anyone with a WordPress blog and clients to bill. The plugin ties into WP’s user management database to keep track of your clients and their information.

Once an invoice is created from the WP admin section, an email with a brief description and a unique link is sent to client. Clients follow the link to your blog’s special invoice page, view their invoice, and pay their bill using PayPal. The control panel is very user-friendly and intuitive.

Credit card payments may be accepted via Authorize.net, MerchantPlus‘ NaviGate, PayPal or Google Checkout account. For recurring billing we have integrated Authorize.net’s ARB API that will allow you to setup payment schedules along with invoices.

Nástroj pro přesun WordPressu jinam

When you’re migrating WordPress (or any other platform using serialized PHP strings in the database) between domains, you must use a safe search and replace method that preserves the integrity of the serialized string lengths. A simple of a dump file for http://localhost to, for example, http://thenewdomain.com is problematic because the length of the string changes but the indexes for the serialized strings does not. Consequently settings are lost and widgets disappear. Not good.

This script can now also handle multiply nested serializations, which can happen in transient values in WP at times, and it can also handle multi-byte Unicode changes safely. This is important now that internationalised domain names are allowed.

It’s worth mentioning that the code will work for any platform that stores PHP serialized arrays in a MySQL database. You can easily use this script on Drupal, Joomla and many other systems where you need to change items across a database without messing up your stored arrays.

Search & Replace DB »

*Související*

How to Move WordPress to a New Server (without losing anything)
http://www.sitepoint.com/move-wordpress-new-server-without-losing-anything/

Automatické prolinkování a související příspěvky

SEO Auto Links & Related Posts
http://wordpress.org/plugins/seo-alrp/

*Auto Links*

Auto create internal link to posts related to the current post base on Meta Keywords and Post Tags. Authority sites like Wikipedia always have a lot of internal link, and this feature will automatically help you getting the same results.

*Related Posts with 8 layout & style*

Displaying related posts based on the Content of articles, Post Tags and Meta Keywords. This feature is useful to improve internal links and to keep visitors stay on your site.

*Slide Out Related Posts with 6 theme color*

It is a sliding box, with related/recent posts in it, that will automatically appeared at the lower right corner when user scroll down and reach the end of article. It will grab visitors attention right after they finish reading your article, and giving them more options about what to do next. The impact is a longer visitors time spent on your site.

*Cache All Results and Thumbnail*

Visitors and Google likes fast loading websites. That’s why we use a persistent cache to store all results from auto links, related posts, slide out and thumbnail to get a better loading time and save server resources. All requests will be served from the cache, except on the first request.

*Custom Auto Link to Affiliate Products*

Manually adding a couple of keywords and links for the auto link. You can use this feature to automatically create a link to a trusted site for better SEO results or to affiliate products to earn additional profit.