Support » Fixing WordPress » probleme whit funtion coused 500 error

  • hi
    ihave aprobleme whit this function is coused a 500 error ^pleas help my

    add_filter( 'wp_mail_from', 'mail_from'  );
    add_filter( 'wp_mail_from_name', 'mail_from_name' );
    
    function mail_from_name($from_name){
    
    	return 'Monde Annuaires';
    
    }
    
    function mail_from($from_mail){
    
    	return 'no-reply@mondeannuaires.com';
    
    }
    if ( is_admin() ){
    	 $jobs_localisation_fields=array(
    	        array(
    	            'id' => 'job_listing_region',
    	            'name' => __( 'Localisation', 'e-memi' ),
    	         	'type' => 'taxonomy_ajax',
    	   		 	'taxonomy' => 'job_listing_region',
    	   		 	'multiple'=>true,
    	            'desc' => __( 'Select Localisation of  listing.', 'job-listing' )
    	        )
    	);
    
        $jobs_localisation_metas = array(
            'title' => __( 'Localisation', 'job-listing' ),
            'pages' => 'job_listing',
            'fields' => $jobs_localisation_fields,
        );
    
       new SM_Meta_Box( $jobs_localisation_metas );
    }

    [Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]

    • This topic was modified 2 years ago by  t-p.
    • This topic was modified 2 years ago by  t-p.
    • This topic was modified 2 years ago by  t-p.
Viewing 1 replies (of 1 total)
  • Edite:
    the proble is juste her

    if(is_admin()){
    	 $jobs_localisation_fields=array(
    	        array(
    	            'id' => 'job_listing_region',
    	            'name' => __( 'Localisation', 'e-memi' ),
    	         	'type' => 'taxonomy_ajax',
    	   		 	'taxonomy' => 'job_listing_region',
    	   		 	'multiple'=>true,
    	            'desc' => __( 'Select Localisation of  listing.', 'job-listing' ),
    	        )
    	);
    
        $jobs_localisation_metas = array(
            'title' => __( 'Localisation', 'job-listing' ),
            'pages' => 'job_listing',
            'fields' => $jobs_localisation_fields,
        );
    
       new SM_Meta_Box( $jobs_localisation_metas );
    }
Viewing 1 replies (of 1 total)
  • The topic ‘probleme whit funtion coused 500 error’ is closed to new replies.