PluginProbe
Copy Anything to Clipboard for WordPress – Copy Button, Copy Text & Copy Code / 5.5.4
Copy Anything to Clipboard for WordPress – Copy Button, Copy Text & Copy Code v5.5.4
5.5.4 5.5.3 3.1.0 3.2.0 3.2.1 3.3.0 3.4.0 3.4.1 3.4.2 3.4.3 3.5.0 3.5.1 3.5.2 3.6.0 3.7.0 3.8.0 3.8.1 3.8.2 3.8.3 4.0.0 4.0.2 4.0.3 4.0.4 4.0.5 4.1.0 All 79 releases
copy-the-code / includes / third-party / class-supsystic-tables.php

class-supsystic-tables.php in Copy Anything to Clipboard for WordPress – Copy Button, Copy Text & Copy Code 5.5.4, at includes/third-party/class-supsystic-tables.php

41 lines 936 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Data Tables Generator by Supsystic integration.
4 *
5 * Registers the Supsystic table shortcode as a container so that `[copy]`
6 * inside table cells trigger script enqueue and work with cached/dynamic table output.
7 *
8 * @package CTC
9 * @since 5.5.1
10 */
11
12 namespace CTC\ThirdParty;
13
14 if ( ! defined( 'ABSPATH' ) ) {
15 exit;
16 }
17
18 /**
19 * Class Supsystic_Tables
20 */
21 class Supsystic_Tables {
22
23 /**
24 * Constructor.
25 */
26 public function __construct() {
27 add_filter( 'ctc/shortcode/container_shortcodes', [ $this, 'add_container_shortcodes' ], 10, 1 );
28 }
29
30 /**
31 * Add Supsystic shortcode to the list of container shortcodes.
32 *
33 * @param string[] $container_shortcodes List of shortcode names that may output [copy] in their content.
34 * @return string[] Modified list.
35 */
36 public function add_container_shortcodes( $container_shortcodes ) {
37 $container_shortcodes[] = 'supsystic-tables';
38 return $container_shortcodes;
39 }
40 }
41