EDITUS NEW POST CHANGE HEADER?

OK so I moved evertyhing to entry-content – 


will that be better?asdsd




HTML ADDED HERE


Adding Maps


Add a map component by dragging it from the component tray into a post. There is only one map allowed per post at this time. After adding, click anywhere on the map to add a map marker. Then, click the marker to add a location tooltip text. You can drag the markers around, as well as zoom out and adjust the pan. After things are setup the way you like, click “save locations.” Then, save the post.

For the time being, to edit existing locations, delete the map component, and add it back again. The locations will not be removed, but for now this is the only way to invoke editing map locations. We hope to eliminate this on future updates.

Note: This feature is only available if Aesop Story Engine is installed.

NEED GIF HERE

Filters


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.

lasso_allowed_post_types

An example usage:

// this function limits Editus to 'post' instead of allowing 'page' typesfunction my_post_types($arr){    return array( 'post');}add_filter( 'lasso_allowed_post_types', 'my_post_types' );            
Pre-flight notices



HTML ENDED 


Lover in the day – 




Scroll to Top