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 | |
| // Let’s instantiate this class in our functions.php file: | |
| if( is_admin() ) { | |
| require 'simple_settings_page.php'; | |
| new simple_settings_page(); | |
| } |
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: Disable Plugin for URl | |
| Plugin URI: https://www.glowlogix.com | |
| Description: Disable plugins for for specific backend pages. | |
| Author: Muhammad Usama M. | |
| Version: 1.0.0 | |
| */ | |
| add_filter( 'option_active_plugins', 'disable_plugins_per_page' ); | |
| function disable_plugins_per_page( $plugin_list ) { |
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 App\Http\Middleware; | |
| use Carbon\Carbon; | |
| use Illuminate\Support\Facades\Log; | |
| class LogAfterRequest { | |
| protected $timestamp; |
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 | |
| use Illuminate\Database\Migrations\Migration; | |
| class CreateTrigger extends Migration | |
| { | |
| public function up() | |
| { | |
| DB::unprepared(' | |
| CREATE TRIGGER tr_after_main_insert AFTER INSERT ON `main` FOR EACH ROW |
OlderNewer