Developer hooks
Hook name: propertyhive_demo_data_num_items
Hook type: Filter
Description: Customise the number of records created for each post type
Default: 10
Example usage:
add_filter( 'propertyhive_demo_data_num_items', 'change_num_items' );
function change_num_items( $items )
{
// $items (int) - Number of demo records to create per area. Defaults to 10
return 5;
}
Hook name: propertyhive_demo_data_num_features
Hook type: Filter
Description: Customise the number of property features/bullet points created
Default: 6
Example usage:
add_filter( 'propertyhive_demo_data_num_features', 'change_num_features' );
function change_num_features( $features )
{
// $features (int) - Number of property features to create. Defaults to 6
return 10;
}
Hook name: propertyhive_demo_data_num_property_photos
Hook type: Filter
Description: Customise the number of photos added to properties
Default: 1
Example usage:
add_filter( 'propertyhive_demo_data_num_property_photos', 'change_num_photos' );
function change_num_photos( $photos )
{
// $photos (int) - Number of photos to add to properties. Defaults to 1
return 3;
}
Note that adding more photos could slow down the importing of demo data.