public/wordpress/wp-content/plugins/wp-courseware/includes/functions/deprecated.php
/**
 * Wrapper for deprecated arguments so we can apply some extra logic.
 *
 * @since 4.3.0
 *
 * @param string $argument The deprecated argument.
 * @param string $version The version it was added in.
 * @param string $replacement The replacement argument.
 */
Wrapper for deprecated arguments so we can apply some extra logic.

@param string $argument The deprecated argument.
@param string $version The version it was added in.
@param string $replacement The replacement argument.
Wrapper for deprecated arguments so we can apply some extra logic . @param string $argument The deprecated argument . @param string $version The version it was added in . @param string $replacement The replacement argument .
function wpcw_deprecated_argument( $argument, $version, $message = null ) {
	if ( wpcw_is_ajax() ) {
		do_action( 'deprecated_argument_run', $argument, $message, $version );
		error_log( "The {$argument} argument is deprecated since version {$version}. {$message}" );
	} else {
		_deprecated_argument( $argument, $version, $message );
	}
}
function wpcw_deprecated_argument ( $ argument , $ version , $ message = null ) { if ( wpcw_is_ajax ( ) ) { do_action ( 'deprecated_argument_run' , $ argument , $ message , $ version ) ; error_log ( " The  { $ argument }  argument is deprecated since version  { $ version } .  { $ message } " ) ; } else { _deprecated_argument ( $ argument , $ version , $ message ) ; } }
Wrapper for deprecated arguments so we can apply some extra logic.
Wrapper for deprecated arguments so we can apply some extra logic .