Skip to content

Check if post is tailored #43

@ManUtopiK

Description

@ManUtopiK

There is a function Tailor()->is_canvas() to see if we are on the Tailor canvas (currently editing the page).
There is another function called Tailor()->is_tailoring() but this is not to check if current post was edited with Tailor. I don't understand the purpose of this public function...

It will be nice if we could check in the WP loop if the post was tailored, with a public function like Tailor->is_tailored(). Actually I do that with:

if ( false == get_post_meta( $post->ID, '_tailor_layout', true ) ) {
   // $post not tailored
} else {
    // Tailored $post !
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions