diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 9c34daaa..c189f5b4 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -293,7 +293,7 @@ Fictioneer customizes WordPress by using as many standard action and filter hook | `manage_comments_custom_column` | `fictioneer_add_comments_report_column_content` (10) | `manage_{$type}_posts_custom_column` | `fictioneer_manage_posts_column_patreon` (10), `fictioneer_manage_posts_column_chapter_story` (10) | `personal_options_update` | `fictioneer_update_admin_user_profile` (10), `fictioneer_update_my_user_profile` (10), `fictioneer_update_admin_unlocked_posts` (10) -| `pre_get_posts` | `fictioneer_extend_search_query` (11), `fictioneer_read_others_files` (10), `fictioneer_read_others_files_list_view` (10), `fictioneer_filter_chapters_by_story` (10) +| `pre_get_posts` | `fictioneer_extend_search_query` (11), `fictioneer_read_others_files` (10), `fictioneer_read_others_files_list_view` (10), `fictioneer_filter_chapters_by_story` (10), `fictioneer_extend_taxonomy_pages` (10), `fictioneer_edit_others_fictioneer_posts` (10), `fictioneer_add_sof_to_taxonomy_query` (10) | `private_to_draft` | `fictioneer_chapter_to_draft` (10) | `profile_update` | `fictioneer_on_profile_change` (10) | `publish_to_draft` | `fictioneer_chapter_to_draft` (10) @@ -366,7 +366,6 @@ Fictioneer customizes WordPress by using as many standard action and filter hook | `post_stuck` | `fictioneer_prevent_post_sticky` (10) | `postbox_classes_{$screen_id}_{$box_id}` | `fictioneer_append_metabox_classes` (10) | `pre_comment_user_ip` | `__return_empty_string` (10) -| `pre_get_posts` | `fictioneer_extend_taxonomy_pages` (10), `fictioneer_edit_others_fictioneer_posts` (10), `fictioneer_add_sof_to_taxonomy_query` (10) | `pre_insert_term` | `fictioneer_restrict_tag_creation` (9999) | `preprocess_comment` | `fictioneer_preprocess_comment` (30), `fictioneer_validate_comment_form` (20) | `protected_title_format` | `fictioneer_remove_protected_text` (10) diff --git a/includes/functions/_setup-roles.php b/includes/functions/_setup-roles.php index 9ce4131c..3e5635fc 100644 --- a/includes/functions/_setup-roles.php +++ b/includes/functions/_setup-roles.php @@ -1068,7 +1068,7 @@ if ( ! current_user_can( 'manage_options' ) ) { $query->set( 'author', get_current_user_id() ); } } - add_filter( 'pre_get_posts', 'fictioneer_edit_others_fictioneer_posts' ); + add_action( 'pre_get_posts', 'fictioneer_edit_others_fictioneer_posts' ); // === FCN_READ_OTHERS_FILES ================================================= diff --git a/includes/functions/_setup-wordpress.php b/includes/functions/_setup-wordpress.php index 8c7b24f3..abf0e141 100644 --- a/includes/functions/_setup-wordpress.php +++ b/includes/functions/_setup-wordpress.php @@ -301,7 +301,7 @@ function fictioneer_extend_taxonomy_pages( $query ) { // Add all post types to taxonomy page query $query->set( 'post_type', ['post', 'fcn_story', 'fcn_chapter', 'fcn_recommendation', 'fcn_collection'] ); } -add_filter( 'pre_get_posts', 'fictioneer_extend_taxonomy_pages' ); +add_action( 'pre_get_posts', 'fictioneer_extend_taxonomy_pages' ); // ============================================================================= // MODIFY RSS FEEDS