Skip to content

Commit

Permalink
Revert "REST API投稿でもauto_post_thumbnail_image関数を実行する(テスト)"
Browse files Browse the repository at this point in the history
This reverts commit b50c1df.
  • Loading branch information
yhira committed Apr 9, 2024
1 parent fccc2dc commit 6901968
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/auto-post-thumbnail.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,6 @@ function fetch_thumbnail_image($matches, $key, $post_content, $post_id){
add_action('future_to_publish', 'auto_post_thumbnail_image');
//add_action('xmlrpc_publish_post', 'auto_post_thumbnail_image');
add_action('publish_post', 'auto_post_thumbnail_image');
add_action('rest_insert_post', 'auto_post_thumbnail_image');
add_action('rest_insert_page', 'auto_post_thumbnail_image');
}
if ( !function_exists( 'auto_post_thumbnail_image' ) ):
function auto_post_thumbnail_image($post_id) {
Expand Down

0 comments on commit 6901968

Please sign in to comment.