• Resolved DaWebmaster

    (@dawebmaster)


    I’d like to be able to add my own custom spec fields. Instead of “Year”, “Make” etc. I’d like to add my own.

    Can it be done from the WordPress dashboard? If not, what files would need to be edited and how can I accomplish this?

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author autolistings

    (@autolistings)

    Hi,

    If you need to add your own fields, please use this auto_listings_spec_fields hook. Don’t touch the plugin code directly, otherwise, your custom code will be gone on the new update

    Thread Starter DaWebmaster

    (@dawebmaster)

    Hi,

    Any sample code or documentation on how to hook in and add those fields?

    Plugin Author autolistings

    (@autolistings)

    Here is the sample code:

    add_filter( 'auto_listings_spec_fields', function( $fiedls ) {
    	$fields['custom_field_key'] = [
    		'label' => 'Custom Field label',
    	];
    
    	return $fields;
    } );
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding Custom Spec Fields’ is closed to new replies.