Mercator\Mapping::set_active PHP Метод

set_active() публичный Метод

Set whether the mapping is active
public set_active ( boolean $active ) : boolean | WP_Erro\WP_Error
$active boolean Should the mapping be active? (True for active, false for inactive)
Результат boolean | WP_Erro\WP_Error True if we updated, false if we didn't need to, or WP_Error if an error occurred
    public function set_active($active)
    {
        $data = array('active' => (bool) $active);
        return $this->update($data);
    }