public function markdownEnabled(string $for = ''): bool
    {
        $for = $for === 'posts' || $for === 'comments' ? $for : 'posts';

        return $this->Wp->is_jetpack_active && \Jetpack::is_module_active('markdown')
            // Note: When the Markdown module is active, it's always on for `posts`.
            // See: `jetpack/modules/markdown.php` for the filter that enforces.
            // Note also: It's better not to run the `get_option()` call for `posts`.
            // The option value is only true after the module file/filter is loaded later.
            && ($for === 'posts' || \Jetpack::get_option('wpcom_publish_'.$for.'_with_markdown'));
    }
public function markdownEnabled(string $for = ''): bool
    {
        $for = $for === 'posts' || $for === 'comments' ? $for : 'posts';

        return $this->Wp->is_jetpack_active && \Jetpack::is_module_active('markdown')
            // Note: When the Markdown module is active, it's always on for `posts`.
            // See: `jetpack/modules/markdown.php` for the filter that enforces.
            // Note also: It's better not to run the `get_option()` call for `posts`.
            // The option value is only true after the module file/filter is loaded later.
            && ($for === 'posts' || \Jetpack::get_option('wpcom_publish_'.$for.'_with_markdown'));
    }
public function markdownEnabled ( string $ for = '' ) : bool { $ for = $ for === 'posts' || $ for === 'comments' ? $ for : 'posts' ; return $ this -> Wp -> is_jetpack_active && \ Jetpack :: is_module_active ( 'markdown' ) // Note: When the Markdown module is active, it's always on for `posts`. // See: `jetpack/modules/markdown.php` for the filter that enforces. // Note also: It's better not to run the `get_option()` call for `posts`. // The option value is only true after the module file/filter is loaded later. && ( $ for === 'posts' || \ Jetpack :: get_option ( 'wpcom_publish_' . $ for . '_with_markdown' ) ) ; }
Jetpack markdown enabled?

@since 170126.83164 Jetpack utils.

@param string $for Enabled for what?

@return bool Jetpack markdown enabled?
Jetpack markdown enabled?