PluginProbe
Post Grid Gutenberg Blocks – PostX / 4.0.3
Post Grid Gutenberg Blocks – PostX v4.0.3
5.0.41 5.0.39 5.0.38 5.0.37 5.0.36 5.0.35 5.0.34 5.0.33 5.0.32 5.0.31 5.0.30 5.0.29 5.0.28 5.0.27 5.0.26 5.0.25 5.0.23 5.0.24 5.0.22 5.0.21 5.0.20 5.0.19 5.0.18 5.0.17 2.1.1 All 238 releases
ultimate-post / addons / table_of_content / init.php

init.php in Post Grid Gutenberg Blocks – PostX 4.0.3, at addons/table_of_content/init.php

25 lines 991 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 defined( 'ABSPATH' ) || exit;
3
4 add_filter('ultp_addons_config', 'ultp_toc_config');
5 function ultp_toc_config( $config ) {
6 $configuration = array(
7 'name' => __( 'Table of Contents', 'ultimate-post' ),
8 'desc' => __( 'It enables a highly customizable block to the Gutenberg blocks library to display the Table of Contents.', 'ultimate-post' ),
9 'img' => ULTP_URL.'/assets/img/addons/table-of-content.svg',
10 'is_pro' => false,
11 'docs' => 'https://wpxpo.com/docs/postx/add-on/table-of-content/',
12 'live' => 'https://www.wpxpo.com/postx/addons/table-of-content/live_demo_args',
13 'video' => 'https://www.youtube.com/watch?v=xKu_E720MkE',
14 'position' => 25
15 );
16 $arr['ultp_table_of_content'] = $configuration;
17 return $arr + $config;
18 }
19
20 add_filter( 'rank_math/researches/toc_plugins', function( $toc_plugins ) {
21 if (has_block( 'ultimate-post/table-of-content' ) ) {
22 $toc_plugins['ultimate-post/ultimate-post.php'] = 'PostX';
23 }
24 return $toc_plugins;
25 });