Use a filter:
ymc_filter_custom_layout_18679 OR
ymc_filter_custom_layout_18679_1
Example:
add_filter("ymc_filter_custom_layout_"18679_1, "callback_function", 10, 6);
See documentation.