Fictional Company: Acme Technologies
Author: John Doe Authorized Personnel: Jane Smith, Michael Johnson, Sarah Thompson
Accounts and Platforms:
- Cloud Platform A (Admin Access)
| <?php | |
| // Hook into the '_evp_api_req_types' filter | |
| add_filter('_evp_api_req_types', 'custom_evp_api_req_types_filter', 10, 1); | |
| /** | |
| * Custom filter to modify API request types. | |
| * | |
| * @param array $api_req_types An array of API request types. |
| <Files ".user.ini"> | |
| <IfModule mod_authz_core.c> | |
| Require all denied | |
| </IfModule> | |
| <IfModule !mod_authz_core.c> | |
| Order deny,allow | |
| Deny from all | |
| </IfModule> | |
| </Files> |
| <?php | |
| /** | |
| * Modify the YouTube embedded videos disclaimer text. https://github.com/devuri/easy-video-publisher | |
| * | |
| * @param string $disclaimer The original disclaimer text. | |
| * @return string Modified disclaimer text. | |
| */ | |
| function custom_disclaimer_modifier($disclaimer) { | |
| // Modify the disclaimer text as needed |
| <?php | |
| /* | |
| Plugin Name: Most Recent Posts | |
| Description: Lists posts based on categories and limits the number of returns | |
| */ | |
| function most_recent_posts_shortcode($atts) { | |
| $a = shortcode_atts( | |
| array( | |
| 'postnumber' => 3, |
| <?php | |
| /** | |
| * Prevent Admin users from deactivating plugins. | |
| * | |
| * While this will remove the deactivation link it does NOT prevent deactivation | |
| * It will only hide the link to deactivate. | |
| */ | |
| add_filter( 'plugin_action_links', function ( $actions, $plugin_file, $plugin_data, $context ) { |
| <?php | |
| /** | |
| * Plugin Name: Domain Replacer | |
| * Plugin URI: https://www.example.com | |
| * Description: A simple plugin to replace one domain with another domain in the WordPress database | |
| * Version: 1.0 | |
| * Author: Your Name | |
| * Author URI: https://www.example.com | |
| */ |
| # BEGIN WordPress | |
| # https://wordpress.org/support/article/htaccess | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteBase / | |
| RewriteRule ^index\.php$ - [L] | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteRule . /index.php [L] |
| <?php | |
| namespace MyPlugin\Database; | |
| class WPTable | |
| { | |
| /** | |
| * Get wp database tables. | |
| * | |
| * @return object |
| <?php | |
| require_once dirname( __FILE__ ) . '/vendor/autoload.php'; | |
| use Symfony\Component\ErrorHandler\Debug; | |
| use Symfony\Component\ErrorHandler\ErrorHandler; | |
| use Symfony\Component\ErrorHandler\DebugClassLoader; | |
| use Roots\WPConfig\Config; | |
| use Dotenv\Dotenv; |