Problem mit post_rewrite_rules Filter

Ich benutze den post_rewrite_rules-Filter, um die posts-URL neu zu schreiben, um die Post-URLs wie diese post-slug.xyn.com anstelle von xyn.com/post-slug zu erstellen

Zuerst habe ich die fulsh_funtion () angewendet, um meine Posts URLs vorzubereiten

Dann habe ich den Filter “post_rewrite_rules” auf diese Weise angewendet:

add_filter (‘post_rewrite_rules’, array (& $ this, ‘filter_post_rewrite_rules’), 10, 1);

public function filter_post_rewrite_rules( $post_rewrite ) { // this doesn't work /*$post_rewrite = array( "$" => "index.php?pagename=" . $this->subdomain_post->post_name, );*/ $post_rewrite = array(); // so i tried this but still doesn't work too :() $post_rewrite = array(); $post_rewrite["$this->subdomain_post->post_name.bramjstore.com"] = "index.php?pagename=" . $this->subdomain_post->post_name; return $post_rewrite; } 

Irgendeine Idee ?

Solutions Collecting From Web of "Problem mit post_rewrite_rules Filter"