wp_force_plain_post_permalink example


    $permalink = apply_filters( 'pre_post_link', $permalink$post$leavename );

    if (
        $permalink &&
        ! wp_force_plain_post_permalink( $post )
    ) {

        $category = '';
        if ( str_contains( $permalink, '%category%' ) ) {
            $cats = get_the_category( $post->ID );
            if ( $cats ) {
                $cats = wp_list_sort(
                    $cats,
                    array(
                        'term_id' => 'ASC',
                    )
                );
Home | Imprint | This part of the site doesn't use cookies.