diff --git a/includes/admin/class-sm-admin-assets.php b/includes/admin/class-sm-admin-assets.php index 864fe67..49a42c3 100644 --- a/includes/admin/class-sm-admin-assets.php +++ b/includes/admin/class-sm-admin-assets.php @@ -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' ); } } @@ -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'); } } } diff --git a/includes/admin/class-sm-admin-post-types.php b/includes/admin/class-sm-admin-post-types.php index 17d2381..05213ef 100644 --- a/includes/admin/class-sm-admin-post-types.php +++ b/includes/admin/class-sm-admin-post-types.php @@ -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'); } /** diff --git a/readme.txt b/readme.txt index 7c51dab..e2f9b86 100755 --- a/readme.txt +++ b/readme.txt @@ -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