Add placeholder hooks.

This commit is contained in:
Hoang Huu
2019-10-18 09:24:03 +07:00
parent cb959848b8
commit 18c41ca780
2 changed files with 15 additions and 6 deletions

View File

@@ -513,8 +513,13 @@ function opalestate_get_image_placeholder( $size = '', $url = false ) {
return '<img src="' . esc_url( $src ) . '" alt="' . sprintf( esc_html__( 'Placeholder %s', 'opalestate-pro' ), $size ) . '" />';
}
/**
* Get image placeholder src.
*
* @return string
*/
function opalestate_get_image_placeholder_src() {
return OPALESTATE_PLUGIN_URL . 'assets/images/placeholder.png';
return apply_filters( 'opalestate_get_image_placeholder_src', OPALESTATE_PLUGIN_URL . 'assets/images/placeholder.png' );
}
/**