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
| // ==UserScript== | |
| // @name FlowMattic - Make Execution Count Clickable | |
| // @namespace https://example.local/ | |
| // @version 1.0.0 | |
| // @description Turns the "Executions" count into a link to View History for each workflow row. | |
| // @match *://*/wp-admin/admin.php?page=flowmattic-workflows* | |
| // @match *://*/wp-admin/admin.php?page=flowmattic* | |
| // @run-at document-end | |
| // @grant none | |
| // ==/UserScript== |
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 | |
| namespace FluentSupportPro\App\Http\Controllers; | |
| use FluentSupport\App\App; | |
| use FluentSupport\App\Http\Controllers\Controller; | |
| use FluentSupport\App\Models\Customer; | |
| use FluentSupport\App\Models\Meta; | |
| use FluentSupport\App\Models\MailBox; | |
| use FluentSupport\Framework\Request\Request; |
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 | |
| /* Fluent Support Piping Text #6 */ | |
| if (!defined('ABSPATH')) exit; | |
| add_action('admin_bar_menu', function ($wp_admin_bar) { | |
| if (!current_user_can('manage_options') || !is_admin_bar_showing()) { | |
| return; | |
| } |
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
| /* global FlowMatticWorkflow, FlowMatticWorkflowEvents, FlowMatticWorkflowApp, FlowMatticWorkflowSteps */ | |
| var FlowMatticWorkflow = FlowMatticWorkflow || {}; | |
| ( function( $ ) { | |
| jQuery( document ).ready( function() { | |
| // Workflow Trigger Mycred View. | |
| FlowMatticWorkflow.MycredView = Backbone.View.extend( { | |
| template: FlowMatticWorkflow.template( jQuery( '#flowmattic-application-mycred-data-template' ).html() ), | |
| actionTemplate: FlowMatticWorkflow.template( jQuery( '#flowmattic-application-mycred-action-data-template' ).html() ), |
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
| // Hook into the admin bar menu with a high priority so it appears toward the right. | |
| add_action('admin_bar_menu', 'add_db_name_admin_bar_item', 100); | |
| update_option( 'dpdevkit_adminer', 'yes' ); | |
| /** | |
| * Adds a new node to the WordPress admin bar that displays the database name. | |
| * | |
| * If the option "dpdevkit_adminer" is set to "yes" and the plugin | |
| * devkit/devkit.php is active, the badge links to /devkit-adminer. | |
| * |
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
| public function delete_plugins() { | |
| require_once ABSPATH . 'wp-admin/includes/plugin.php'; | |
| require_once ABSPATH . 'wp-admin/includes/file.php'; | |
| // Plugin basenames you NEVER want to delete | |
| $protected = array( | |
| DPDEV_BASE, // devkit itself | |
| ); | |
| // Let other code add more protected plugins |
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
| // Add this to the main file | |
| // Disable requests only for devkit/devkit.php. | |
| //add_filter( 'devkit_dpupdatechecker_enable_request_devkit_devkit_php', '__return_false' ); | |
| //Then update inc/update.php with this | |
| public function request() { | |
| // 0) Allow disabling / short-circuiting the request via filters. | |
| // Global toggle for all plugins using this updater. |
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
| Add Filter to Requests simlar to: | |
| public function request() { | |
| // 1) Global toggle for all plugins using hoster updater | |
| $enabled = apply_filters( | |
| 'devkit_dpupdatechecker_enable_request', | |
| true, | |
| $this->slug, | |
| $this |
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
| public function request() { | |
| $remote = get_transient( $this->cache_key ); | |
| // If we have any cached value (success OR failure) take note. | |
| if ( false !== $remote ) { | |
| if ( ! is_array( $remote ) ) { | |
| $decoded = json_decode( $remote ); | |
| if ( json_last_error() === JSON_ERROR_NONE ) { | |
| $remote = $decoded; | |
| } |
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 | |
| add_filter('mainwp_before_save_cached_icons', function ($cached_icons, $icon, $slug, $type, $custom_icon, $noexp) { | |
| // Use the SAME raw links as before | |
| $map_urls = [ | |
| 'plugin' => 'https://raw.githubusercontent.com/stingray82/mainwp-plugin-icons/main/icons-map.json', | |
| 'theme' => 'https://raw.githubusercontent.com/stingray82/mainwp-plugin-icons/main/themes-icons-map.json', | |
| ]; |
NewerOlder