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: Delete all comments | |
Description: A custom plugin for deleting all comments from a WordPress site. | |
Version: 1.0 | |
Author: Your Name | |
*/ | |
/* | |
ChatGPT prompt: |
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 | |
/** | |
* Detect if a WordPress plugin is active | |
* (various examples) | |
*/ | |
/* When coding plugins that rely on another one, like Private Content for bbPress or Visual Attributes for WooCommerce, | |
you need to make if the WordPress Plugin is active to initialize your plugin routines or display a notice saying that | |
the required plugin must be activated. In this tutorial we’ll see how to detect whether a certain plugin is active in a | |
couple of ways. |
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 Combine | |
import SwiftUI | |
struct RichTextEditor: NSViewRepresentable { | |
@Binding var attributedText: NSAttributedString | |
@Binding var showInspector: Bool | |
var activity: PassthroughSubject<Date, Never> |
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: Reset Metabox Order | |
Description: Allow WordPress users to reset the metabox order for the post edit screen. | |
Version: 0.0.1 | |
Author: Jonathan Stegall | |
Author URI: https://code.minnpost.com | |
Text Domain: reset-metabox-order | |
License: GPL2+ | |
License URI: https://www.gnu.org/licenses/gpl-2.0.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
<?php | |
/** | |
* Plugin Name: Optional Force Sells | |
* Plugin URI: https://gist.github.com/melek/594d80882b4e0199a18a0c5df5baf3c7 | |
* Description: Extends WooCommerce Force Sells by allowing force sells on a product to be optional on the single product page. | |
* Version: 0.1.5 | |
* Author: Lionel Di Giacomo | |
* Author URI: https://github.com/melek | |
* License: GPL 2.0+ | |
* License URI: https://www.gnu.org/licenses/gpl-2.0.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
/* | |
!! The feature that uses this endpoint has recently started rolling out to users. | |
!! See `App > Avatar > Profile Picture Editor` | |
!! | |
!! You may continue using this script, the only advantage is being able to | |
!! customize FullBody and Closeup independently. | |
*/ | |
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
// | |
// WebView.swift | |
// OPass | |
// | |
// Created by secminhr on 2022/6/23. | |
// 2022 OPass. | |
// | |
import SwiftUI | |
import Combine |
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 | |
// functions.php | |
/** | |
* Remove language dropdown from WordPress Admin login screen. | |
*/ | |
add_filter('login_display_language_dropdown', '__return_false'); | |
/** | |
* Disable XML-RPC by default. |
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 | |
$this->_add_action( 'current_screen', 'maybe_hide_meta_boxes' ); | |
/** | |
* Hides various meta boxes if they have not already been hidden. | |
* Users can still unhide the meta box and it will not be hidden in | |
* the future. | |
* | |
* @param WP_Screen $screen The current screen object. |
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
// | |
// ContentView.swift | |
// WKWebViewTemplate | |
// | |
// Created by Hiroyuki KITAGO on 2022/01/26. | |
// | |
import SwiftUI | |
import WebKit | |
struct ContentView: View { |