| @@ -60,9 +60,9 @@ | ||
| 60 | 60 | // Enqueue settings script. |
| 61 | 61 | add_action( 'admin_enqueue_scripts', [ $this, 'enqueue_settings_scripts' ] ); |
| 62 | 62 | |
| 63 | 63 | // Do setting up stuff when the plugin is activated. |
| 64 | - add_action( 'content_block_builder_activate', [ $this, 'run_the_plugin_setup' ] ); | |
| 64 | + add_action( 'cbb/activate', [ $this, 'run_the_plugin_setup' ] ); | |
| 65 | 65 | |
| 66 | 66 | // Maybe update core blocks. |
| 67 | 67 | add_action( 'init', [ $this, 'maybe_update_core_blocks' ] ); |
| 68 | 68 | |
| @@ -69,9 +69,9 @@ | ||
| 69 | 69 | // Add rest api endpoint to query docs. |
| 70 | 70 | add_action( 'rest_api_init', [ $this, 'register_docs_endpoint' ] ); |
| 71 | 71 | |
| 72 | 72 | // Clear the transient cache on upgraded. |
| 73 | - add_action( 'cbb_version_upgraded', [ $this, 'clear_transient_cache' ] ); | |
| 73 | + add_action( 'cbb/version_upgraded', [ $this, 'clear_transient_cache' ] ); | |
| 74 | 74 | |
| 75 | 75 | // Change the footer text for the settings pages. |
| 76 | 76 | add_action( 'admin_footer_text', [ $this, 'admin_footer_text' ] ); |
| 77 | 77 | |
| @@ -78,9 +78,9 @@ | ||
| 78 | 78 | // Purge the cache. |
| 79 | 79 | add_action( 'admin_init', [ $this, 'boldblocks_purge_cache' ] ); |
| 80 | 80 | |
| 81 | 81 | // Migrate legacy options. |
| 82 | - add_action( 'cbb_version_upgraded', [ $this, 'migrate_legacy_options' ] ); | |
| 82 | + add_action( 'cbb/version_upgraded', [ $this, 'migrate_legacy_options' ] ); | |
| 83 | 83 | |
| 84 | 84 | // Register setting fields. |
| 85 | 85 | add_action( 'init', [ $this, 'register_settings' ] ); |
| 86 | 86 | } |
| @@ -110,9 +110,9 @@ | ||
| 110 | 110 | 'class' => '', |
| 111 | 111 | ], |
| 112 | 112 | ]; |
| 113 | 113 | |
| 114 | - $left_links = apply_filters( 'content_blocks_builder_get_header_left_links', $left_links ); | |
| 114 | + $left_links = apply_filters( 'cbb_get_header_left_links', $left_links ); | |
| 115 | 115 | |
| 116 | 116 | ?> |
| 117 | 117 | <div class="cbb-settings-header"> |
| 118 | 118 | <h1><strong><?php echo esc_html( $this->plugin_title ); ?></strong> <code><?php echo esc_html( $this->the_plugin_instance->get_plugin_version() ); ?></code></h1> |