芝麻web文件管理V1.00
编辑当前文件:/home/mybf1/www/class.bf1.my/wp-content/plugins/all-in-one-seo-pack/app/Common/Meta/Meta.php
metaData = new MetaData(); $this->title = new Title(); $this->description = new Description(); $this->keywords = new Keywords(); $this->robots = new Robots(); new Amp(); new Links(); add_action( 'delete_post', [ $this, 'deletePostMeta' ], 1000 ); } /** * When we delete the meta, we want to delete our post model. * * @since 4.0.1 * * @param integer $postId The ID of the post. * @return void */ public function deletePostMeta( $postId ) { $aioseoPost = Models\Post::getPost( $postId ); if ( $aioseoPost->exists() ) { $aioseoPost->delete(); } } }