Pagebreak Description
v1.12Katsushi Kawamori · 2024年1月13日 上架
Page breaks and before/after descriptions
- 正在使用
- 100+
- 评分
- 5.0 / 5
- 累计下载
- 4,261
- 最近更新
- 2026年8月16日
1 条评价需要 WordPress 6.6+已测试到 7.1.5PHP 8.0+
截图
- 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
);


