sarkfultion
⌂
›
wp-content
›
plugins
›
easy-table-of-contents
›
includes
sarkfultion
16 dreads
↑ redisq
📁
vendor/
dreads
sarkfultion
dreads
📄
class-debug.php
4,490 B
sarkfultion
dreads
📄
class-eztoc-admin.php
46,139 B
sarkfultion
dreads
📄
class-eztoc-option.php
126,106 B
sarkfultion
dreads
📄
class-eztoc-pointers.php
3,932 B
sarkfultion
dreads
📄
class-eztoc-post.php
82,114 B
sarkfultion
dreads
📄
class-eztoc-sitemap.php
9,750 B
sarkfultion
dreads
📄
class-eztoc-widget.php
33,011 B
sarkfultion
dreads
📄
class-eztoc-widgetsticky.php
61,811 B
sarkfultion
dreads
📄
deactivate-feedback.php
3,370 B
sarkfultion
dreads
📄
helper-function.php
5,171 B
sarkfultion
dreads
📄
inc.admin-options-page.php
72,052 B
sarkfultion
dreads
📄
inc.cord-functions.php
13,935 B
sarkfultion
dreads
📄
inc.functions.php
25,933 B
sarkfultion
dreads
📄
inc.plugin-compatibility.php
52,659 B
sarkfultion
dreads
📄
public-helper-function.php
1,286 B
sarkfultion
dreads
redisq: public-helper-function.php
<?php if ( ! defined( 'ABSPATH' ) ) { exit; } /* * Read the contents of a file using the WordPress filesystem API. * Since: 2.0.68 * @param string $file_path The path to the file. * @return string|false The file contents or false on failure. */ function eztoc_read_file_contents($file_path) { global $wp_filesystem; // Initialize the WordPress filesystem, no more using file_get_contents function if (empty($wp_filesystem)) { require_once ABSPATH . 'wp-admin/includes/file.php'; WP_Filesystem(); } // Check if the file exists and is readable if ($wp_filesystem->exists($file_path) && $wp_filesystem->is_readable($file_path)) { return $wp_filesystem->get_contents($file_path); } return false; } /* * Check if a plugin is active. * Since: 2.0.79 * @param string $plugin_slug The plugin slug (e.g., 'plugin-folder/plugin-file.php'). * @return bool True if the plugin is active, false otherwise. */ function eztoc_is_plugin_active( $plugin_slug ) { if ( empty( $plugin_slug ) ) { return false; } if ( ! function_exists( 'is_plugin_active' ) ) { require_once ABSPATH . 'wp-admin/includes/plugin.php'; } return is_plugin_active( $plugin_slug ); }
sarkfultion