Skip to content

Commit

Permalink
Add more hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikola Miljković committed Apr 4, 2018
1 parent 9ca11a3 commit 259553f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes/admin/class-sm-admin-assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ public function admin_styles() {
// Enqueue styles for Sermon Manager pages only
if ( in_array( $screen_id, sm_get_screen_ids() ) ) {
wp_enqueue_style( 'sm_admin_styles' );

do_action( 'sm_enqueue_admin_css' );
}
}

Expand All @@ -36,6 +38,8 @@ public function admin_scripts() {
// Enqueue scripts for Sermon Manager pages only
if ( in_array( $screen_id, sm_get_screen_ids() ) ) {
// todo: move php notice script here, but register it first above

do_action('sm_enqueue_admin_js');
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions includes/admin/class-sm-admin-post-types.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ public function __construct() {
add_filter( 'enter_title_here', array( $this, 'enter_title_here' ), 1, 2 );

//include_once 'class-sm-admin-meta-boxes.php';

do_action('after_sm_admin_post_types');
}

/**
Expand Down
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ Visit the [plugin homepage](https://wpforchurch.com/wordpress-plugins/sermon-man
2. Sermon Files

## Changelog ##
### 2.12.6 ###
* Dev: Add more hooks

### 2.12.5 ###
* Change: Add Previous/Next sermon navigation
* Change: Add `hide_title` parameter for `[sermon_images]` shortcode
Expand Down

0 comments on commit 259553f

Please sign in to comment.