This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Checks to see if an asset is activated or not. | |
| * | |
| * @param string $path Path to the asset (e.g., akismet/akismet.php). | |
| * | |
| * @return bool true if activated, false if not. | |
| */ | |
| function dlx_is_plugin_activated( $path ) { | |
| if ( ! function_exists( 'is_plugin_active_for_network' ) ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Plugin Name: DLX EDD Output Schema Download | |
| * Description: Outputs the structured data for a download. | |
| * Version: 1.0.0 | |
| * Author: Ronald Huereca | |
| * Author URI: https://dlxplugins.com | |
| * Text Domain: dlx-edd-output-schema-download | |
| * Domain Path: /languages | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Checks if the plugin is on a multisite install and if plugin is active for network. | |
| * | |
| * @param bool $network_admin Whether to check if in the network admin. | |
| * @param bool $network_activated Whether the plugin is active for the network. | |
| * @param mixed $plugin_file Path to the plugin file. | |
| * | |
| * @return bool True if multisite, false if not. If in network admin, true if plugin is active for network, false if not. If not in network admin, true if plugin is active for the site, false if not. | |
| */ | |
| function dlx_is_multisite( $network_admin = false, $network_activated = false, $plugin_file = __FILE__ ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { __ } from '@wordpress/i18n'; | |
| const getCropSettings = ( overrides = {} ) => { | |
| // Set the settings for the media uploader and cropper. | |
| let settings = { | |
| id: '', | |
| attachmentId: 0, | |
| aspectRatio: '1:1', | |
| suggestedWidth: '500', | |
| suggestedHeight: '500', | |
| nonce: '', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$schema": "https://playground.wordpress.net/blueprint-schema.json", | |
| "preferredVersions": { | |
| "php": "8.0", | |
| "wp": "6.5" | |
| }, | |
| "features": { | |
| "networking": true | |
| }, | |
| "phpExtensionBundles": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Plugin Name: Fullscreen Admin Panel. | |
| * Plugin URI: https://dlxplugins.com | |
| * Description: A demo plugin to create a fullscreen admin panel. | |
| * Version: 1.0.0 | |
| * Requires at least: 6.0 | |
| * Requires PHP: 7.3 | |
| * Author: DLX Plugins | |
| * Author URI: https://dlxplugins.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Plugin Name: DLX Change Image Attributes | |
| * Plugin URI: https://dlxplugins.com | |
| * Description: Change the align and default link settings for an image. | |
| * Version: 1.0.0 | |
| * Requires at least: 6.0 | |
| * Requires PHP: 7.3 | |
| * Author: Ronald Huereca | |
| * Author URI: https://mediaron.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Plugin Name: DLX Change Paragraph Placeholder | |
| * Plugin URI: https://dlxplugins.com | |
| * Description: Change the placeholder text for the paragraph block. | |
| * Version: 1.0.0 | |
| * Requires at least: 6.0 | |
| * Requires PHP: 7.3 | |
| * Author: Ronald Huereca | |
| * Author URI: https://mediaron.com |
NewerOlder