Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add filter for local provider name #48

Merged
merged 3 commits into from
Sep 14, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion inc/LocalProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function get_id() : string {
}

public function get_name() : string {
return __( 'Local Media', 'asset-manager-framework' );
return apply_filters( 'amf/local_provider/name', __( 'Local Media', 'asset-manager-framework' ) );
}

protected function request( array $args ) : MediaList {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "asset-manager-framework",
"version": "0.10.2",
"version": "0.10.3",
"description": "A framework for overriding the WordPress media library with an external asset provider.",
"author": "Human Made",
"license": "GPL-2.0-or-later",
Expand Down
2 changes: 1 addition & 1 deletion plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* Plugin Name: Asset Manager Framework
* Description: A framework for overriding the WordPress media library with an external asset provider.
* Version: 0.10.2
* Version: 0.10.3
* Plugin URI: https://github.com/humanmade/asset-manager-framework
* Author: Human Made
* Author URI: https://humanmade.com/
Expand Down