Skip to content

ClassicPress/classicpress-directory-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6ab53a6 · Apr 11, 2025

History

71 Commits
Oct 18, 2024
Apr 11, 2025
Mar 28, 2024
Apr 30, 2024
Jan 9, 2023
Apr 18, 2024
Jan 13, 2025
Sep 2, 2023
Dec 28, 2022
May 31, 2024
Apr 11, 2025
Jan 9, 2023

Repository files navigation

ClassicPress Directory Integration Plugin logo

ClassicPress Directory integrator.

Features

  • Plugins and themes from ClassicPress Directory now can update as WP.org plugins.
  • Plugins from ClassicPress Directory now can be installed using the "Install CP Plugins" menu under "Plugins" menu.
  • Themes from ClassicPress Directory now can be installed using the "Install CP Themes" menu under "Appearance" menu.

WP-CLI commands

  • Flush transients: wp cpdi flush

Hooks

apply_filters( "cpdi_images_folder_{$plugin}", string $folder )

Filters the folder where we search for icons and banners. The filtered path is relative to the plugin's directory. Default is /images.

Example:

add_filter(
	'cpdi_images_folder_' . basename( __DIR__ ),
	function ( $source ) {
		return '/assets/images';
	}
);