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\Resources; | |
use App\Http\Handlers\Admin\UploadMediaFile; | |
use App\Http\Resources\Support\ResourceLink; | |
use App\Policies\EventPolicy; | |
use Illuminate\Support\Facades\Auth; | |
class EventResource extends ItemResource |
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 | |
/** Enable my local themes and plugins repository FFS!!! */ | |
add_filter( 'http_request_host_is_external', 'allow_my_custom_host', 10, 3 ); | |
function allow_my_custom_host( $allow, $host, $url ) { | |
if ( $host == 'put.your-repository-domain-here.com' ) | |
$allow = true; | |
return $allow; | |
} |