EDITUS CREATED – UPDATED?

EDITUS CREATED – updated?

other stuff added


Editus Activation

This filter can be used to control when Editus is activated. The filter function takes three parameters: ($result, $action, $postid)

$result is a true/false value returned by the default lasso_user_can() function.

$action can be one of the following values: ‘delete_post’,’publish_posts’,’edit_posts’,’delete_others_posts’

lasso_user_can_filter

A sample filter code and registration:

         // only activate if the post type is 'post'function editus_user_can( $result, $action, $postid ) {    if (!$result ) {        return false;    } else {        $post_type = get_post_type();        if (empty($post_type)) { // this is necessary for save operation            return $result;        }        if ($post_type == 'post') {            return true;        }        return false;    }}add_filter( 'lasso_user_can_filter', 'editus_user_can', 10, 3 );
Allowed Post Types

This filter can be used to add or remove post types allowed for Editus. If you have custom post types you should use this filter to add custom post types.



More copy added!!





Scroll to Top