| @@ -181,8 +181,17 @@ | ||
| 181 | 181 | if ( ! $post_id || ! get_post( $post_id ) ) { |
| 182 | 182 | return false; |
| 183 | 183 | } |
| 184 | 184 | |
| 185 | + /** | |
| 186 | + * Retrieve document post ID. | |
| 187 | + * | |
| 188 | + * Filters the document post ID. | |
| 189 | + * | |
| 190 | + * @since 2.0.7 | |
| 191 | + * | |
| 192 | + * @param int $post_id The post ID of the document. | |
| 193 | + */ | |
| 185 | 194 | $post_id = apply_filters( 'elementor/documents/get/post_id', $post_id ); |
| 186 | 195 | |
| 187 | 196 | if ( ! $from_cache || ! isset( $this->documents[ $post_id ] ) ) { |
| 188 | 197 | |