/ (filterable). * Not linked anywhere yet: the widget pages are not published. * * @param string $slug Widget slug, e.g. "carousel". * @return string */ function reactwoo_atomic_widget_docs_url( $slug ) { $slug = sanitize_title( (string) $slug ); $url = 'https://reactwoo.com/atomic/widgets/' . ( '' !== $slug ? $slug . '/' : '' ); /** * Filter a widget docs URL. * * @param string $url Docs URL. * @param string $slug Widget slug. */ $filtered = apply_filters( 'reactwoo/atomic/widget_docs_url', $url, $slug ); return is_string( $filtered ) && '' !== $filtered ? esc_url_raw( $filtered ) : $url; } }