WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

WyPiekacz

Multi-Author Blog Toolkit - check if posts submitted for review/posted satisfies set of rules, enforce these rules, delete abandoned drafts and more!

How to use Forbidden Word List and Allowed Word List?

WyPiekacz first checks if every word from Forbidden Word List is in text. This check is very simple, so forbidden word fly will be matched to butterfly word too. In order to avoid this, you should put allowed words on Allowed Word List. WyPiekacz uses the same simple matching method, so you do not have to enter whole words (this is especially useful if your language allows to decline words in many ways). Please make sure only that forbidden words are always contained in words on Allowed Word List (in other words, entering butterf will not work - you have to enter butterfly).

Why this plugin is called "WyPiekacz"?

You may heard about Presell Pages - content pages placed on other sites, with link(s) leading to your site(s). In Poland this idea evolved into separate sites (WordPress is the preferred script), where everyone can post his or her post with links. Of course there are different Presell Pages - some of them accepts every post and are just full of junk, but there are also ones where posts are thoroughly moderated before publishing. WyPiekacz plugin greatly simplifies moderation tasks for the latter ones.

"Presell Page" is not the only name used to call them - another popular name is just "Presell", or similarly pronounced Polish word "Precel" (eng. pretzel). This last name is also a source of other derived names for some tools - they have names referring to pretzels or baking. "WyPiekacz" also follows this convention - it means "baker" - i.e. "tool used for baking".

How can I integrate my plugin with WyPiekacz?

WyPiekacz provides few hooks which you can use for integration purposes. Here is the list:

  • wypiekacz_check_post - this filter is called after all build-in rules have been checked. You can use it to check additional rules. As a first parameter it gets array of errors - each row is an array with language-independent key at index 0 and error message at index 1. There are also additional parameters: post content, post title, and post data (either POST array or Post object);
  • wypiekacz_check_thumbnail - this filter is called after WyPiekacz has checked Post thumbnail presence. As a first parameter it gets thumbnail check result (bool). There are also additional parameters - Post ID and Post Data (either POST array or Post object);
  • wypiekacz_enforce_rules - this filter is called after WyPiekacz enforced configured rules. It gets one parameter - array with post data. You can use it to enforce additional rules;

How can I check if my custom Post thumbnail is present?

You can use the wypiekacz_check_thumbnail filter to do this. Here is example how to do this using the Get The Image plugin:

function check_my_custom_post_thumbnail( $check, $post_id ) {
    if ( $post_id <= 0 ) {
        return false;
    }
    return !empty( get_the_image( array(
        'post_id' => $post_id,
        'attachment' => false,
        'echo' => false,
    ) ) );
}
add_filter( 'wypiekacz_check_thumbnail', 'check_my_custom_post_thumbnail', 10, 2);

Requires: 2.7 or higher
Compatible up to: 3.2.9
Last Updated: 2011-10-13
Downloads: 12,715

Ratings

4 stars
4.8 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,1,1
100,1,1
100,1,1 100,1,1
100,1,1 100,1,1
100,3,3
100,1,1
100,2,2
100,2,2
100,4,4
100,1,1
0,1,0
100,1,1
100,1,1
100,2,2