Elementor\Admin::add_edit_in_dashboard PHP Method

add_edit_in_dashboard() public method

Add edit link in outside edit post.
Since: 1.0.0
public add_edit_in_dashboard ( $actions, $post ) : array
$actions
$post
return array
    public function add_edit_in_dashboard($actions, $post)
    {
        if (User::is_current_user_can_edit($post->ID) && 'builder' === Plugin::instance()->db->get_edit_mode($post->ID)) {
            $actions['edit_with_elementor'] = sprintf('<a href="%s">%s</a>', Utils::get_edit_link($post->ID), __('Edit with Elementor', 'elementor'));
        }
        return $actions;
    }