Skip to content
Permalink
Browse files

New: Filter pm_after_get_files

  • Loading branch information...
asaquzzaman authored and OpuRockey committed Mar 7, 2019
1 parent 655cce8 commit d7b893e1a62baa6c4f784590ee2f8a3ad1b84803
@@ -120,11 +120,19 @@
'in_footer' => true
],
'pm-v-fullscreen' => [
'id' => 'pm-v-fullscreen',
'url' => plugin_dir_url( dirname( __FILE__ ) ) . 'views/assets/vendor/vue-fullscreen/vue-fullscreen.min.js',
'path' => $view_path . '/assets/vendor/vue-fullscreen/vue-fullscreen.min.js',
'dependency' => ['pm-v-tooltip'],
'in_footer' => true
],
'pm-nprogress' => [
'id' => 'pm-nprogress',
'url' => plugin_dir_url( dirname( __FILE__ ) ) . 'views/assets/vendor/nprogress/nprogress'.$suffix.'.js',
'path' => $view_path . '/assets/vendor/nprogress/nprogress'.$suffix.'.js',
'dependency' => ['pm-v-tooltip', 'pm-locale'],
'dependency' => ['pm-v-tooltip', 'pm-locale', 'pm-v-fullscreen'],
'in_footer' => true
],
@@ -226,7 +234,7 @@
]
];
if ( version_compare( $wp_version, '5.0', '<' ) ) {
if ( ( version_compare( $wp_version, '5.0', '<' ) ) || ! is_admin() ) {
$pm_hooks = [
'pm-hooks' => [
'id' => 'pm-hooks',
@@ -84,7 +84,7 @@ protected function fireModelEvent($event, $halt = true) {
}
break;
case 'created':
case 'created':
do_action( 'pm_created', $this );
Activity_Log::entry( $this, 'created' );
break;
@@ -6,7 +6,7 @@ class Register_Scripts {
public static function scripts() {
$scripts = config('scripts');
foreach ( $scripts as $script ) {
$path = config( 'app.version' );

Some generated files are not rendered by default. Learn more.

@@ -94,6 +94,7 @@
"v-autocomplete": "^1.8.2",
"vue": "^2.5.2",
"vue-color": "^2.4.5",
"vue-fullscreen": "^2.1.5",
"vue-multiselect": "^2.0.3",
"vue-popperjs": "^1.6.3",
"vue-router": "^3.0.1",
@@ -210,6 +210,11 @@ A. Found any bugs? Please create an [issue](https://github.com/tareq1988/wp-proj

== Changelog ==

= v2.0.14 - March 04, 2019 =

* **New** Filter 'pm_after_get_files'.


= v2.0.13 - March 04, 2019 =

* **New** Set loading effect for 'Load more' task.
@@ -38,7 +38,9 @@ public function index( WP_REST_Request $request ) {
$resource = new Collection( $file_collection, new File_Transformer );
$resource->setPaginator( new IlluminatePaginatorAdapter( $files ) );
return $this->get_response( $resource );
$response = $this->get_response( $resource );
return apply_filters( 'pm_after_get_files', $response, $files, $resource, $request->get_params() );
}
public function show( WP_REST_Request $request ) {

0 comments on commit d7b893e

Please sign in to comment.
You can’t perform that action at this time.