gianism_default_redirect_link

gianism_default_redirect_link

Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: gianism.5.2.2

apply_filters('gianism_default_redirect_link') is found 3 times:

  • /app/Gianism/Service/AbstractService.php line 650
    			 * @param string $service  Service name. e.g. twitter.
    			 * @param bool   $register Detect if this is register context.
    			 * @param string $context  Context of this button. Default empty string.
    			 */
    			$redirect = apply_filters( 'gianism_default_redirect_link', $redirect, $this->service_name, $register, $context );
    		}
    		$url_args = [
    			'redirect_to' => $redirect,
    		];
    		if ( $this->network->is_child_site() ) {
    			$url_args['blog_id'] = get_current_blog_id();
    
  • /app/Gianism/Service/AbstractService.php line 703
    	 * @return string
    	 */
    	public function connect_button( $redirect_to = '' ) {
    		if ( empty( $redirect_to ) ) {
    			$redirect_to = apply_filters( 'gianism_default_redirect_link', admin_url( 'profile.php' ), $this->service_name, false, 'connect' );
    		}
    		$url  = $this->get_redirect_endpoint(
    			'connect',
    			$this->service_name . '_connect',
    			array(
    				'redirect_to' => $redirect_to,
    
  • /app/Gianism/Service/AbstractService.php line 731
    	 * @return string
    	 */
    	public function disconnect_button( $redirect_to = '' ) {
    		if ( empty( $redirect_to ) ) {
    			$redirect_to = apply_filters( 'gianism_default_redirect_link', admin_url( 'profile.php' ), $this->service_name, false, 'disconnect' );
    		}
    		$url  = $this->get_redirect_endpoint(
    			'disconnect',
    			$this->service_name . '_disconnect',
    			array(
    				'redirect_to' => $redirect_to,
    

See this hook used in plugins: