Support » Plugins » Please help me add_filter function!

  • Hello,
    I have a function for encrypt the content:

    function rewrite_text( $article, $case_sensitive=false ) {
    	$codul='<script type="text/javascript">
    	return $workwith;
    add_filter('the_content', 'rewrite_text', 100);

    But i want to using function rewrite_text to encrypt this function:

    function dp_video($post_id, $autoplay = false) {
    		$video = "<div class=\"video-wrap\"><embed src=\"".$youtube_id."?modestbranding=1&version=3&hl=vi_VN&rel=0&autoplay=1&showsearch=0&iv_load_policy=3&theme=light\" type=\"application/x-shockwave-flash\" allowFullScreen=\"true\" allowScriptAccess=\"always\" width=\"100%\" height=\"100%\"/></div>";
    		echo $video;

    Please help me add add_filter to this code:
    add_filter('the_content', 'rewrite_text', 100);
    I’m using:
    add_filter('dp_video', 'rewrite_text', 100);
    It’s not working.
    Sorry, my English is bad! 🙁

  • The topic ‘Please help me add_filter function!’ is closed to new replies.