BACK TO DIRECTORY

Pagebreak Description

by Katsushi Kawamori

5.0
(1 ratings)
  • Enter page breaks and before/after descriptions. Values are used in pagination.
  • Do not mix this block with the Page Break block, as it may cause the comment to be misaligned.

How it works

Filter hooks

/** ==================================================
 * Filter for CSS URL.
 * Default CSS -> /pagebreak-description/css/style.css
 */
add_filter(
    'pagebreak_description_css', 
    function() {

        /* If you put mydesign.css in wp-content/uploads */
        $wp_uploads = wp_upload_dir();
        $upload_url = $wp_uploads['baseurl'];
        if ( is_ssl() ) {
            $upload_url = str_replace( 'http:', 'https:', $upload_url );
        }
        $upload_url = untrailingslashit( $upload_url );
        $url = $upload_url . '/mydesign.css';

        return $url;
    },
    10,
    1
);

Screenshots

Block

Block

View

View

Management screen

Management screen

Plugin Details

Active Installs
90
Total Downloads
3,953
Version
1.12
Requires WP
6.6
Requires PHP
8.0
Tested Up To
7.1
Added
2024-01-13
Last Updated
2026-08-16 10:13am GMT

Ratings

5
1
4
0
3
0
2
0
1
0