Skip to:
Content

bbPress.org

Ticket #1824: bbpress-path-filters.diff

File bbpress-path-filters.diff, 1.3 KB (added by tott, 9 years ago)
  • bbpress.php

     
    350350
    351351                // Setup some base path and URL information
    352352                $this->file       = __FILE__;
    353                 $this->basename   = plugin_basename( $this->file );
    354                 $this->plugin_dir = plugin_dir_path( $this->file );
    355                 $this->plugin_url = plugin_dir_url ( $this->file );
     353                $this->basename   = apply_filters( 'bbp_plugin_basenname', plugin_basename( $this->file ) );
     354                $this->plugin_dir = apply_filters( 'bbp_plugin_dir_path', plugin_dir_path( $this->file ) );
     355                $this->plugin_url = apply_filters( 'bbp_plugin_dir_url', plugin_dir_url( $this->file ) );
    356356
    357357                // Themes
    358                 $this->themes_dir = trailingslashit( $this->plugin_dir . 'bbp-themes' );
    359                 $this->themes_url = trailingslashit( $this->plugin_url . 'bbp-themes' );
     358                $this->themes_dir = apply_filters( 'bbp_themes_dir', trailingslashit( $this->plugin_dir . 'bbp-themes' ) );
     359                $this->themes_url = apply_filters( 'bbp_themes_url', trailingslashit( $this->plugin_url . 'bbp-themes' ) );
    360360
    361361                // Languages
    362                 $this->lang_dir   = trailingslashit( $this->plugin_dir . 'bbp-languages' );
     362                $this->lang_dir   = apply_filters( 'bbp_lang_dir', trailingslashit( $this->plugin_dir . 'bbp-languages' ) );
    363363
    364364                /** Identifiers *******************************************************/
    365365